Opened 19 years ago
Closed 19 years ago
#3894 closed (duplicate)
ManyToMany breaks in admin on python 2.3
| Reported by: | Owned by: | Adrian Holovaty | |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
class Bug(models.Model):
some_field = models.CharField(maxlength=30)
belongs_to_sites = models.ManyToManyField(Site, null=True, blank=True)
class Admin:
pass
Testing the exact same model on python2.3, breaks with this error: "Cannot resolve keyword 'bug' into field."
get_all_related_many_to_many_objects seems to not add a RelatedObject with this model to the list.
Note:
See TracTickets
for help on using tickets.
Traceback