Suggested import does not work with translation on
|Reported by:||evenrik||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
A proposal convention: Specifying all admin options in a file called admin.py, and import it in the __init__.py file of your application module to do the registering during the initialization.
Adding the import there gave an error when I18N = True in my settings.py file:
AttributeError: 'module' object has no attribute '<app name>'
This seems to be the same issue as #3860 which says "It's not really a bug but a rather an undocumented quirk." I moved the import into my models.py file and the error went away.
Change History (5)
comment:1 Changed 7 years ago by Karen Tracey <kmtracey@…>
- Keywords nfa-blocker added
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset