Django for Designers/Adding models: Difference between revisions
Content added Content deleted
imported>Aldeka |
imported>Aldeka |
||
Line 189: | Line 189: | ||
</source> |
</source> |
||
=== Fix the hideous default model representation=== |
|||
Wait a minute! <Bookmark: Bookmark object> is an utterly unhelpful representation of this object. Let’s fix that by editing the Bookmark model. Use your text editor to open the bookmarks/models.py file and adding a __unicode__() method to both Bookmark and Tag: |
Wait a minute! <Bookmark: Bookmark object> is an utterly unhelpful representation of this object. Let’s fix that by editing the Bookmark model. Use your text editor to open the bookmarks/models.py file and adding a __unicode__() method to both Bookmark and Tag: |
||