#8519 closed (fixed)
databrowse.site.register reports "The model ModelBase is already registered" instead of naming the actual model
| Reported by: | Luciano Ramalho | Owned by: | nobody |
|---|---|---|---|
| Component: | contrib.databrowse | Version: | 1.0-beta |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
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__)
Attachments (1)
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):
raise NotRegistered('The model %s is not registered' % model.__class__.__name__)shoul be
raise NotRegistered('The model %s is not registered' % model.__name__)