#12633 closed (fixed)
Access to creates_table manyToManyField attribute leftover from before the r11710 automatic throuth model change
Reported by: | Ramiro Morales | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
http://code.djangoproject.com/browser/django/trunk/django/db/backends/creation.py?rev=12252#L160 and http://code.djangoproject.com/browser/django/trunk/django/db/backends/creation.py?rev=12252#L311
The sql_for_many_to_many_field
and sql_destroy_many_to_many
methods aren't called from anywhere in Django code anymore but were kept for backward compatibility with third-party code.
They will just always raise:
AttributeError: 'ManyToManyField' object has no attribute 'creates_table'
Attachments (1)
Change History (4)
by , 15 years ago
Attachment: | 12633.diff added |
---|
comment:1 by , 15 years ago
Has patch: | set |
---|---|
milestone: | → 1.2 |
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch implementing fix suggested by Alex Gaynor