Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2024-03-18 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
-+
 Reporter:  Sergey Fedoseev  |Owner:  Tom L.
 Type:  Bug  |   Status:  assigned
Component:  Migrations   |  Version:  dev
 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 Mariusz Felisiak):

 * needs_better_patch:  0 => 1

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e50de1aba-ce93f3f6-ab1b-40c7-8fbc-14306b03918f-00%40eu-central-1.amazonses.com.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2024-03-16 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
-+
 Reporter:  Sergey Fedoseev  |Owner:  Tom L.
 Type:  Bug  |   Status:  assigned
Component:  Migrations   |  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by Tom L.):

 * needs_tests:  1 => 0

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e46c8268a-be35b7bd-f9b9-4d2a-a214-9af9bc51958b-00%40eu-central-1.amazonses.com.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2024-03-15 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
-+
 Reporter:  Sergey Fedoseev  |Owner:  Tom L.
 Type:  Bug  |   Status:  assigned
Component:  Migrations   |  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  1|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+
Changes (by Tom L.):

 * owner:  Vadim Fabrichnov => Tom L.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e43f4d30b-51f2b237-bfa2-4bc1-abbc-787c27332ed2-00%40eu-central-1.amazonses.com.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2021-01-18 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
-+-
 Reporter:  Sergey Fedoseev  |Owner:  Vadim
 |  Fabrichnov
 Type:  Bug  |   Status:  assigned
Component:  Migrations   |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  1|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Mariusz Felisiak):

 * needs_tests:  0 => 1


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.dc9988e396dc97e01932fa30c544f9c1%40djangoproject.com.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2021-01-07 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
-+-
 Reporter:  Sergey Fedoseev  |Owner:  Vadim
 |  Fabrichnov
 Type:  Bug  |   Status:  assigned
Component:  Migrations   |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Vadim Fabrichnov):

 * needs_better_patch:  1 => 0


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.9e1f4c3421aeada2fa14a00557286882%40djangoproject.com.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2020-06-03 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
-+
 Reporter:  Sergey Fedoseev  |Owner:  Zorking
 Type:  Bug  |   Status:  assigned
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 Zorking):

 * owner:  (none) => Zorking
 * status:  new => assigned


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.8793d84b54206e002651debea9e98805%40djangoproject.com.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2020-05-13 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
-+
 Reporter:  Sergey Fedoseev  |Owner:  (none)
 Type:  Bug  |   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 Sardorbek Imomaliev):

 * cc: Sardorbek Imomaliev (added)


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.d932df09d6174d5fc5357861aec7f91b%40djangoproject.com.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2020-05-11 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
-+
 Reporter:  Sergey Fedoseev  |Owner:  (none)
 Type:  Bug  |   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 Ian Foote):

 * owner:  Ian Foote => (none)
 * status:  assigned => new


Comment:

 Deassigning because I don't think I'm likely to get to this again in the
 near future and I'd be happy for someone else to take my work and finish
 the job.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.0bd65df16c45353a19b354812ba7ccc9%40djangoproject.com.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2020-03-06 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
-+-
 Reporter:  Sergey Fedoseev  |Owner:  Ian Foote
 Type:  Bug  |   Status:  assigned
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
-+-

Comment (by felixxm):

 Another use case is described in #31343.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.4a550181cfce4dc889ab42c3c20a8bbb%40djangoproject.com.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2020-03-02 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
-+-
 Reporter:  Sergey Fedoseev  |Owner:  Ian Foote
 Type:  Bug  |   Status:  assigned
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
-+-

Comment (by felixxm):

 Another two duplicates: #31329 and #26488.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.86d73494205f432112c07c0c38864e69%40djangoproject.com.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2019-10-25 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
-+-
 Reporter:  Sergey Fedoseev  |Owner:  Ian Foote
 Type:  Bug  |   Status:  assigned
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
-+-

Comment (by Karolis Ryselis):

 There is one more case that needs to be addressed related to bases in
 migrations.

 **Step 1:**
 Consider this model:
 {{{
 class Good(GoodServiceBase):
 title = models.CharField(max_length=16)
 }}}
 this creates migration with the following operation:

 {{{
 migrations.CreateModel(
 name='Good',
 fields=[
 ('id', models.AutoField(auto_created=True, primary_key=True,
 serialize=False, verbose_name='ID')),
 ('title', models.CharField(max_length=16)),
 ],
 ),
 }}}

 **Step 2:**
 Then we add a new model and change existing model to inherit from the new
 model.

 {{{
 class GoodServiceBase(models.Model):
 active = models.BooleanField(default=True)

 class Good(GoodServiceBase):
 title = models.CharField(max_length=16)
 }}}

 This generates migration like this:
 {{{
 migrations.CreateModel(
 name='GoodServiceBase',
 fields=[
 ('id', models.AutoField(auto_created=True, primary_key=True,
 serialize=False, verbose_name='ID')),
 ('active', models.BooleanField(default=True)),
 ],
 ),
 migrations.RemoveField(
 model_name='good',
 name='id',
 ),
 migrations.AddField(
 model_name='good',
 name='goodservicebase_ptr',
 field=models.OneToOneField(auto_created=True, default=1,
 on_delete=django.db.models.deletion.CASCADE, parent_link=True,
 primary_key=True, serialize=False, to='goods.GoodServiceBase'),
 preserve_default=False,
 ),
 }}}

 If we have no data in database, this will pass.

 **Step 3 with crash:**
 Try to access field {{{active}}} in datamigration and migration crashes.
 Operation in migration to reproduce this:
 {{{
 def migrate_my_data(apps, schema_editor):
 for good in apps.get_model("goods", "Good").objects.all():
 print(good.active)

 migrations.RunPython(migrate_my_data, reverse_code=lambda x, y: None)
 }}}

 This crashes with the error:
 {{{
 <...>
 File "/goods/migrations/0003_auto_20191025_1157.py", line 8,
 in migrate_my_data
   print(good.active)
 AttributeError: 'Good' object has no attribute 'active'
 }}}

 As far as I understand this happens because {{{bases}}} is not altered in
 migration and fake models do not inherit fields from their true parent
 models. Thus, currently if we change inheritance chain of existing models,
 we lose the ability to use those models in data migrations.

 Tested in version 2.2.6.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.b6f8c638872eaa9a23acc8f9e0dd831c%40djangoproject.com.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2019-07-15 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
-+-
 Reporter:  Sergey Fedoseev  |Owner:  Ian Foote
 Type:  Bug  |   Status:  assigned
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 Daniel Rios):

 * cc: Daniel Rios (added)


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.1bb5852dd04096b048031419804db1e9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2019-05-27 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
-+-
 Reporter:  Sergey Fedoseev  |Owner:  Ian Foote
 Type:  Bug  |   Status:  assigned
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
-+-

Comment (by felixxm):

 Another use case of `migrations.AlterModelBases()` is described in #30513.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.2728d3cd60688930180c2aa2a2074b46%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2019-05-20 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
-+-
 Reporter:  Sergey Fedoseev  |Owner:  Ian Foote
 Type:  Bug  |   Status:  assigned
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 felixxm):

 * needs_better_patch:  0 => 1
 * version:  1.7 => master


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.077c23e0a390de7f598cf068b0e5702e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2019-04-14 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
-+-
 Reporter:  Sergey Fedoseev  |Owner:  Ian Foote
 Type:  Bug  |   Status:  assigned
Component:  Migrations   |  Version:  1.7
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Ian Foote):

 * has_patch:  0 => 1


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.a60d519dc49d53cef170a1499c8688cb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2019-04-13 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
-+-
 Reporter:  Sergey Fedoseev  |Owner:  Ian Foote
 Type:  Bug  |   Status:  assigned
Component:  Migrations   |  Version:  1.7
 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
-+-
Changes (by Ian Foote):

 * owner:  (none) => Ian Foote
 * status:  new => assigned


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.03eaec8481c698998ce714f775ea%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2019-04-13 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
-+
 Reporter:  Sergey Fedoseev  |Owner:  (none)
 Type:  Bug  |   Status:  new
Component:  Migrations   |  Version:  1.7
 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
-+
Changes (by Ian Foote):

 * cc: Ian Foote (added)


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.e1c157f1f228a0adc159687e87686296%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2019-02-27 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
-+
 Reporter:  Sergey Fedoseev  |Owner:  (none)
 Type:  Bug  |   Status:  new
Component:  Migrations   |  Version:  1.7
 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
-+
Changes (by Charlie Denton):

 * cc: Charlie Denton (added)


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.cd05bf789e15c71ca5b86f903d89fd61%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2017-03-29 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
-+
 Reporter:  Sergey Fedoseev  |Owner:  (none)
 Type:  Bug  |   Status:  new
Component:  Migrations   |  Version:  1.7
 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
-+
Changes (by Sergey Fedoseev):

 * status:  assigned => new
 * owner:  Sergey Fedoseev => (none)


--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.b9a82c4732e3594e80ebe50c3cdc4659%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2017-03-29 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
-+-
 Reporter:  Sergey Fedoseev  |Owner:  Sergey
 |  Fedoseev
 Type:  Bug  |   Status:  assigned
Component:  Migrations   |  Version:  1.7
 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
-+-
Changes (by Sergey Fedoseev):

 * status:  new => assigned


--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.27ab0ab6526a182beccf03e022580085%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2016-12-14 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
-+-
 Reporter:  Sergey Fedoseev  |Owner:  Sergey
 |  Fedoseev
 Type:  Bug  |   Status:  new
Component:  Migrations   |  Version:  1.7
 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 rm_):

 I had the need as described in #23818 but instead of squashing migrations
 i've created a migrations operator to update the bases on migrations
 models state. This works fine for me on django 1.8. I still haven't tested
 if django master behaves differently. Do you think this is a valuable
 addition to django?

 {{{
 class AlterBaseOperation(Operation):
 reduce_to_sql = False
 reversible = True

 def __init__(self, model_name, bases, prev_bases):
 self.model_name = model_name
 self.bases = bases
 self.prev_bases = prev_bases

 def state_forwards(self, app_label, state):
 state.models[app_label, self.model_name].bases = self.bases
 state.reload_model(app_label, self.model_name)

 def state_backwards(self, app_label, state):
 state.models[app_label, self.model_name].bases = self.prev_bases
 state.reload_model(app_label, self.model_name)

 def database_forwards(self, app_label, schema_editor, from_state,
 to_state):
 pass

 def database_backwards(self, app_label, schema_editor, from_state,
 to_state):
 pass

 def describe(self):
 return "Update %s bases to %s" % (self.model_name, self.bases)
 }}}

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.b63e98bfae35d2e06a8637a7e7264820%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2016-04-17 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
+
 Reporter:  sir-sigurd  |Owner:
 Type:  Bug |   Status:  new
Component:  Migrations  |  Version:  1.7
 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 jmfederico):

 Having the same issue.
 I had to manually alter my initial migration and remove the offending base
 class for my app to work.

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.adaf139a58d47a780e4212b6a6067e08%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2016-04-11 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
+
 Reporter:  sir-sigurd  |Owner:
 Type:  Bug |   Status:  new
Component:  Migrations  |  Version:  1.7
 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 timgraham):

 #23521 may be related or a duplicate.

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.1d27d8119977e1c1a905b44f70ba3c97%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2016-01-08 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
+
 Reporter:  sir-sigurd  |Owner:
 Type:  Bug |   Status:  new
Component:  Migrations  |  Version:  1.7
 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
+
Changes (by crearc):

 * cc: ericmills2@… (added)


Comment:

 This bug has burned me pretty bad. I was working through steps to switch
 from concrete inheritance to abstract inheritance. Is someone going to
 revisit this?

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.e994d8611835fb504467a17c3575c8fe%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2015-11-11 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
+
 Reporter:  sir-sigurd  |Owner:
 Type:  Bug |   Status:  new
Component:  Migrations  |  Version:  1.7
 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
+
Changes (by sir-sigurd):

 * owner:  sir-sigurd =>
 * status:  assigned => new


--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.681131907a4ae6a2578b3815cfce43f2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2015-11-11 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
+--
 Reporter:  sir-sigurd  |Owner:  sir-sigurd
 Type:  Bug |   Status:  assigned
Component:  Migrations  |  Version:  1.7
 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
+--
Changes (by sir-sigurd):

 * status:  new => assigned


--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.bdd490e8bcc045088282b080f4858eb1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2014-11-15 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
+--
 Reporter:  sir-sigurd  |Owner:  sir-sigurd
 Type:  Bug |   Status:  new
Component:  Migrations  |  Version:  1.7
 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
+--
Changes (by ris):

 * cc: bugs@… (added)


--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.70eb41ca9f7b4cc595a5c3d7b60a0d62%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2014-11-15 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
+--
 Reporter:  sir-sigurd  |Owner:  sir-sigurd
 Type:  Bug |   Status:  new
Component:  Migrations  |  Version:  1.7
 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 ris):

 I invite you all to look at my marked-as-duplicate bug #23818. To me it
 seems there is simply no way for django's migration operations to express
 a change of {{{bases}}}. {{{parent_link}}}s are created & removed, but the
 built-up in-memory representation of the models never understands the new
 parentage, meaning certain operations (e.g. in a RunPython operation) will
 simply not work right when referring to inherited fields. This goes beyond
 {{{makemigrations}}} simply not detecting a change.

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.4cc2416a1f99fef6c28c7d84cf59b439%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2014-09-28 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
+--
 Reporter:  sir-sigurd  |Owner:  sir-sigurd
 Type:  Bug |   Status:  new
Component:  Migrations  |  Version:  1.7
 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 yuvadm):

 There's an easier way to reproduce what seems to be the exact same error:

 * Create a `BaseModel` and a `SubModel` that inherits from it
 * Run `makemigrations` and `migrate` to add both models to database
 * Delete both models together
 * Run `makemigrations` and `migrate` to delete both models from the
 database

 The same error should now appear.

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.56d6be5e964ca0ddbd9200d57378160d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2014-09-21 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
+--
 Reporter:  sir-sigurd  |Owner:  sir-sigurd
 Type:  Bug |   Status:  new
Component:  Migrations  |  Version:  1.7
 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 sir-sigurd):

 Replying to [comment:6 Markush2010]:
 > Are you working on a patch sir-sigurd? If not, I'd write one.

 Yes, I'm working on it.

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.789f4384da96a1cf593ada936465faaf%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2014-09-21 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
+--
 Reporter:  sir-sigurd  |Owner:  sir-sigurd
 Type:  Bug |   Status:  new
Component:  Migrations  |  Version:  1.7
 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 Markush2010):

 Are you working on a patch sir-sigurd? If not, I'd write one.

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.95d049100142bc30b8e5c75c6f2f5ccb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2014-09-20 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
+--
 Reporter:  sir-sigurd  |Owner:  sir-sigurd
 Type:  Bug |   Status:  new
Component:  Migrations  |  Version:  1.7
 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
+--
Changes (by Markush2010):

 * cc: info+coding@… (added)


Old description:

> Steps to reproduce:
>
> * add `test` app with `models.py`:
> {{{
> class Thing(models.Model):
> pass
>

> class SuperThing(Thing):
> pass
> }}}
>
> * do
>
> {{{
> manage.py makemigrations test
> }}}
>

> * change `models.py`:
> {{{
> class SuperThing(models.Model):
> thing_ptr = models.AutoField(primary_key=True)
> }}}
>
> * do
>
> {{{
> manage.py makemigrations test
> }}}
>
> * do it one more time
>
> {{{
> manage.py makemigrations test
> }}}
>
> last command results in
>

> {{{
> django.db.migrations.state.InvalidBasesError: Cannot resolve bases for
> []
> This can happen if you are inheriting models from an app with migrations
> (e.g. contrib.auth)
>  in an app with no migrations; see
> https://docs.djangoproject.com/en/1.7/topics/migrations/#dependencies for
> more
> }}}

New description:

 Steps to reproduce:

 * add `test` app with `models.py`:
 {{{
 class Thing(models.Model):
 pass


 class SuperThing(Thing):
 pass
 }}}

 * do

 {{{
 manage.py makemigrations test
 }}}


 * change `models.py` (remove `Thing`):
 {{{
 class SuperThing(models.Model):
 thing_ptr = models.AutoField(primary_key=True)
 }}}

 * do

 {{{
 manage.py makemigrations test
 }}}

 * do it one more time

 {{{
 manage.py makemigrations test
 }}}

 last command results in


 {{{
 django.db.migrations.state.InvalidBasesError: Cannot resolve bases for
 []
 This can happen if you are inheriting models from an app with migrations
 (e.g. contrib.auth)
  in an app with no migrations; see
 https://docs.djangoproject.com/en/1.7/topics/migrations/#dependencies for
 more
 }}}

--

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.f1f2ab5d9fd06a7ab9b914c6b7b29978%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2014-09-20 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
+--
 Reporter:  sir-sigurd  |Owner:  sir-sigurd
 Type:  Bug |   Status:  new
Component:  Migrations  |  Version:  1.7
 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
+--
Changes (by bmispelon):

 * stage:  Unreviewed => Accepted


Comment:

 Thanks, that's the bit I was missing.

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.9508ce09208be43c108da3e3bf26e42c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2014-09-20 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
+--
 Reporter:  sir-sigurd  |Owner:  sir-sigurd
 Type:  Bug |   Status:  new
Component:  Migrations  |  Version:  1.7
 Severity:  Normal  |   Resolution:
 Keywords:  | Triage Stage:  Unreviewed
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--

Comment (by sir-sigurd):

 Replying to [comment:2 bmispelon]:


 Hi,

 Probably this is not obvious, but removal of `Thing` model from
 `models.py`, not only from `SuperThing` bases was implied.

 [[BR]]
 > As a side note, it's not possible to create an app called `test` because
 you get this error when doing `manage.py startapp test`
 I have never used this for creating apps =)

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.785dd464da7c32981cf0f6bfd7214791%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2014-09-20 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
+--
 Reporter:  sir-sigurd  |Owner:  sir-sigurd
 Type:  Bug |   Status:  new
Component:  Migrations  |  Version:  1.7
 Severity:  Normal  |   Resolution:
 Keywords:  | Triage Stage:  Unreviewed
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--

Comment (by bmispelon):

 Hi,

 I can't reproduce the issue you're describing.

 On master, the second `makemigrations` doesn't detect any changes.
 On `stable/1.7.x`, it does create a migration but running it a third time
 works (and detects no change as expected).

 As a side note, it's not possible to create an app called `test` because
 you get this error when doing `manage.py startapp test`:

 > CommandError: 'test' conflicts with the name of an existing Python
 module and cannot be used as an app name. Please try another name.


 Can you provide us with some details on how you're trigerring the issue?

 Thanks.

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.3f3b30284a2888b84cee745d15825216%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2014-09-18 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
+--
 Reporter:  sir-sigurd  |Owner:  sir-sigurd
 Type:  Bug |   Status:  new
Component:  Migrations  |  Version:  1.7
 Severity:  Normal  |   Resolution:
 Keywords:  | Triage Stage:  Unreviewed
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--
Changes (by sir-sigurd):

 * needs_docs:   => 0
 * type:  Uncategorized => Bug
 * component:  Uncategorized => Migrations
 * needs_tests:   => 0
 * needs_better_patch:   => 0


--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.22d8553cb770a9470d0eeb72cfde5ab4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[Django] #23521: removal of concrete Model from bases doesn't remove it from ModelState bases

2014-09-18 Thread Django
#23521: removal of concrete Model from bases doesn't remove it from ModelState
bases
---+
 Reporter:  sir-sigurd |  Owner:  sir-sigurd
 Type:  Uncategorized  | Status:  new
Component:  Uncategorized  |Version:  1.7
 Severity:  Normal |   Keywords:
 Triage Stage:  Unreviewed |  Has patch:  0
Easy pickings:  0  |  UI/UX:  0
---+
 Steps to reproduce:

 * add `test` app with `models.py`:
 {{{
 class Thing(models.Model):
 pass


 class SuperThing(Thing):
 pass
 }}}

 * do

 {{{
 manage.py makemigrations test
 }}}


 * change `models.py`:
 {{{
 class SuperThing(models.Model):
 thing_ptr = models.AutoField(primary_key=True)
 }}}

 * do

 {{{
 manage.py makemigrations test
 }}}

 * do it one more time

 {{{
 manage.py makemigrations test
 }}}

 last command results in


 {{{
 django.db.migrations.state.InvalidBasesError: Cannot resolve bases for
 []
 This can happen if you are inheriting models from an app with migrations
 (e.g. contrib.auth)
  in an app with no migrations; see
 https://docs.djangoproject.com/en/1.7/topics/migrations/#dependencies for
 more
 }}}

--
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.1fbcb34b418089a8214832b6bad4fab5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.