Changes between Version 4 and Version 5 of NewbieMistakes
- Timestamp:
- Aug 17, 2005, 9:22:19 AM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewbieMistakes
v4 v5 16 16 17 17 Remove the include(). Just give the module and function name (e.g., {{{'myproject.apps.polls.views.polls.index'}}}) as a string, with no include() around it. 18 19 20 == Blank object names == 21 22 ==== Symptom ==== 23 24 The automatic admin interface is showing nothing (or a single {{{ }}}) in the "Select [object_type] to change" view. 25 26 ==== Probable cause ==== 27 28 You may have forgotten to create a {{{__repr__()}}} function for your model. Django calls {{{__repr__()}}} to find out how to display objects in the admin interface. 29 30 ==== Solution ==== 31 32 Add a {{{__repr__()}}} function to all your models. Make it a habit so it becomes automatic.