django-shop icon indicating copy to clipboard operation
django-shop copied to clipboard

Set 'en' as the admin language for demo projects

Open khchine5 opened this issue 9 years ago • 7 comments

Hi @jrief , It would be more easy for a starter to get a demo project with 'en' as the admin language. The part of fixtures file to fix in the file 'myshop.json'

{
  "model": "cms.usersettings",
  "pk": 1,
  "fields": {
    "user": [
      "admin"
    ],
    //"language": "de", 
      "language": "en", 
    "clipboard": 1
  }
},

Thanks.

khchine5 avatar Sep 30 '16 13:09 khchine5

Ups, oversaw this. Is this still true?

jrief avatar Nov 16 '16 16:11 jrief

Hi @jrief , Yes , it is still there. File : myshop.json ,line 99

khchine5 avatar Nov 16 '16 18:11 khchine5

@khchine5 can you send a PR against awesto/django-shop?

rfleschenberg avatar Nov 18 '16 11:11 rfleschenberg

Yes sure @rfleschenberg , but the fixtures used by 'initialize_shop_demo' is not available in awesto/django-shop. That is why I haven't create a PR.

khchine5 avatar Nov 18 '16 11:11 khchine5

Ah, I see! Where is that management command defined? I can't find it.

rfleschenberg avatar Nov 18 '16 11:11 rfleschenberg

Never mind, I got it.

rfleschenberg avatar Nov 18 '16 11:11 rfleschenberg

Stupid me! Didn't notice, when I created that fixture. Thanks for reporting.

@rfleschenberg could you please review PR #463. With that fix I'd like to release 0.9.4

jrief avatar Nov 18 '16 15:11 jrief