migrations operation to alter model bases

2016-12-13 Thread Riccardo Magliocchetti

Hello,

on a journey to change a model from a concrete inheritance to an abstract one 
i've created a migration operation to change the bases of a model state in the 
migrations machinery. Is there a reason that there's not one in django? Would it 
be interesting to add it?


thanks in advance

--
Riccardo Magliocchetti
@rmistaken

http://menodizero.it

--
You received this message because you are subscribed to the Google Groups "Django 
developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/81d664eb-8019-4c6f-c97f-4dd49fd9283a%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: migrations operation to alter model bases

2016-12-13 Thread Tim Graham
There are a few open tickets that may be related:

https://code.djangoproject.com/ticket/23521 - removal of concrete Model 
from bases doesn't remove it from ModelState bases
https://code.djangoproject.com/ticket/26488 - migrate raises 
InvalidBasesError if you rename a multitable inheritance base model

On Tuesday, December 13, 2016 at 12:40:45 PM UTC-5, riccardo.magliocchetti 
wrote:
>
> Hello, 
>
> on a journey to change a model from a concrete inheritance to an abstract 
> one 
> i've created a migration operation to change the bases of a model state in 
> the 
> migrations machinery. Is there a reason that there's not one in django? 
> Would it 
> be interesting to add it? 
>
> thanks in advance 
>
> -- 
> Riccardo Magliocchetti 
> @rmistaken 
>
> http://menodizero.it 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/8f0e667d-6241-43f3-9ef6-ed899dac801f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.