#26521: CreateModel allows duplicate field names
--------------------------------------+------------------------------------
Reporter: w0rp | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Migrations | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by collinanderson):
* status: closed => new
* resolution: fixed =>
Comment:
I think this broke non-model base classes:
{{{
File
"/home/collin/comcenter/../comcenter/category/migrations/0001_initial.py",
line 9, in <module>
class Migration(migrations.Migration):
File
"/home/collin/comcenter/../comcenter/category/migrations/0001_initial.py",
line 35, in Migration
bases=(models.Model, comcenter.product.models.WhiteBlackListMixin),
File "/home/collin/comcenter/django/db/migrations/operations/models.py",
line 62, in __init__
for base in self.bases
File "/home/collin/comcenter/django/db/migrations/operations/models.py",
line 17, in _check_for_duplicates
for val in objs:
File "/home/collin/comcenter/django/db/migrations/operations/models.py",
line 63, in <genexpr>
if base is not models.Model)
AttributeError: type object 'WhiteBlackListMixin' has no attribute 'lower'
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26521#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/062.2b6972ba1bd0cac6fe849137e24b85a4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.