Django

Code

Ticket #1864 (closed: fixed)

Opened 3 years ago

Last modified 3 years ago

[patch] fix contenttype presentation

Reported by: ian@holsman.net Assigned to: adrian
Milestone: Component: django.contrib.admin
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

so it displays in templates properly

circe:/magik/django/contrib/contenttypes iholsman$ svn diff
Index: models.py
===================================================================
--- models.py   (revision 2901)
+++ models.py   (working copy)
@@ -31,7 +31,7 @@
         ordering = ('name',)
         unique_together = (('app_label', 'model'),)
 
-    def __repr__(self):
+    def __str__(self):
         return self.name
 
     def model_class(self):

Attachments

Change History

05/14/06 23:25:21 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [2904].


Add/Change #1864 ([patch] fix contenttype presentation)




Change Properties
Action