Hi,

Sorry Daniel for bothering, my understanding of many to many field was 
pretty shaky :)

On Monday, December 9, 2013 5:02:13 PM UTC+5:30, Tom Evans wrote:
>
> On Fri, Dec 6, 2013 at 9:42 AM, Mrinmoy Das 
> <[email protected]<javascript:>> 
> wrote: 
> > I cant get the field 
> > 
> > 
> > unit_price = models.ManyToManyField(UnitType,through=UnitPrice, 
> blank=True, 
> > null=True) 
> > 
> > in Property table. 
> > 
> > After adding the field, I tried doing a schemamigration, but output says 
> > "No change has been done" 
> > 
>
> This is because adding that field results in no change - no columns 
> need to be added to any tables, no columns need to be removed from any 
> tables and no tables need to be created. 
>
> Adding the unit_price field to Property simply informs Django to 
> create the appropriate properties on the python models so that you can 
> access the related models, and so South, being a tool for managing 
> database schema changes, has nothing to do. 
>
> Cheers 
>
> Tom 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" 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].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/92ef6686-d643-4a23-8edb-8c7727f7b6c4%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to