django-page-cms
django-page-cms copied to clipboard
When editing a page, admin forms forget title/slug/etc
Steps to reproduce
- create a page using the django admin.
- click on the page title
The page has no title/slug/language set in the edit form.
I can't really reproduce. Could you give me more information? How do you run the software? Give me as much details as possible.
This behavior seems to happen when user create or open the sub locale pages about slug. But I couldn't reproduce this about title or language. Why slug field is located on Content model? I guess this field should be located on Page model.
I discovered some bugs. Maybe that would fix your problems:
https://github.com/batiste/django-page-cms/commit/80940504a3c167e8ed5d2667731b881f58d08be4
All the translatable fields are located in the content model... Because they need to be translatable.
I apologize for the insufficient explanation. I see your point. I often use '{% show_content "slug_name" request.LANGUAGE_CODE %}' in template. Since if admin doesn't change slug by default when create or open the sub locale pages, it will become more convenient for me.
@stakemura Sorry but I still understand anything. You need to be more precise about what you are doing, what you are expecting to see, and what you see.
Ok. After the above fix is comitted, I will show you by code.