#8519 closed (fixed)
databrowse.site.register reports "The model ModelBase is already registered" instead of naming the actual model
Description ¶
This is another manifestation of bug #4696, but in a different piece of code.
django.contrib.databrowse.site, in function register (line 92) is:
raise AlreadyRegistered('The model %s is already registered' % model.__class__.__name__)
should be:
raise AlreadyRegistered('The model %s is already registered' % model.__name__)
Change History (5)
comment:1 by , 17 years ago
by , 17 years ago
Attachment: | 8519-1.diff added |
---|
comment:2 by , 17 years ago
Has patch: | set |
---|---|
Triage Stage: | Unreviewed → Ready for checkin |
comment:3 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
BTW, I just noticed that the same problem existis a few lines below in the same source code file, django.contrib.databrowse.site, but in function unregister (line 105):
shoul be