Re: South doesn't recognize modification in ManytoMany fields
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAlIMD2QACgkQuYLL1cDjHx2dIQCePua1g612IkJZBYKQPFIIjlDr
VOYAnika/ceP4tTBkuSjfSaPUziGHXMi
=m44v
-----END PGP SIGNATURE-----
Hi,
On Thu, 15 Aug 2013 03:31:08 +0530 Pradeep Kumar <npradee90@gmail.com>
wrote:
> I have made a model change from
> standard = models.ManyToManyField(Standard)
> to
> standard = models.ManyToManyField(Standard, blank = True, null = True)
> South schemamigration for this app doesn't recognize the change ?
I don't see a difference between these two? Both say that you want to
have zero or more connections from each item in your model to the items
of Standard. And zero or more connections from each Standard-item to
items in your model.
M2M are done with an intermediate table. But why do you want to add
lines in that table that have an entry to your model but no entry for
'Standard'? Its the same as if no entry in the intermediate.
I think what django (and south) do is just ignore blank- and
null-parameters.
Have fun,
Arnold
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home