#25293: Multi-table inheritance with only related fields results in invalid
migration on MySQL
----------------------------+------------------------------------
Reporter: hbielenia | Owner: nobody
Type: Bug | Status: new
Component: Migrations | Version: 1.8
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+------------------------------------
Comment (by abhaga):
I'm trying to reproduce it but for me, the following correct Migration is
being generated:
{{{
operations = [
migrations.CreateModel(
name='client',
fields=[
('user_ptr', models.OneToOneField(parent_link=True,
auto_created=True, primary_key=True, serialize=False,
to=settings.AUTH_USER_MODEL)),
('mailing_list', models.OneToOneField(null=True,
default=None, to='bug.SubscriberList')),
],
options={
'abstract': False,
'verbose_name': 'user',
'verbose_name_plural': 'users',
},
bases=('auth.user',),
managers=[
('objects', django.contrib.auth.models.UserManager()),
],
),
]
}}}
Can you provide a complete set of model definitions that will reproduce
the issue?
--
Ticket URL: <https://code.djangoproject.com/ticket/25293#comment:3>
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/067.bc7d2a7c9a1ecf93910362a197a4cd27%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.