Re: ManyToMany field creation problem

2013-12-09 Thread Mrinmoy Das
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 > > wrote: > > I cant get the field > > > > > > unit_price =

Re: ManyToMany field creation problem

2013-12-09 Thread Tom Evans
On Fri, Dec 6, 2013 at 9:42 AM, Mrinmoy Das 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 >

Re: ManyToMany field creation problem

2013-12-06 Thread Daniel Roseman
On Friday, 6 December 2013 19:15:32 UTC, Mrinmoy Das wrote: > > Hi Daniel, > > I can always add a field manually, question is why does not south does it. > :) > > Mrinmoy Das > http://goromlagche.in/ > Sigh. One last time, then. There is no other field. A many-to-many relationship is *only* a

Re: ManyToMany field creation problem

2013-12-06 Thread Mrinmoy Das
Hi Daniel, I can always add a field manually, question is why does not south does it. :) Mrinmoy Das http://goromlagche.in/ On Sat, Dec 7, 2013 at 12:09 AM, Daniel Roseman wrote: > As I've already said, you don't need any help. If the through table is > created, *that

Re: ManyToMany field creation problem

2013-12-06 Thread Daniel Roseman
As I've already said, you don't need any help. If the through table is created, *that is all you need*. -- DR. -- 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

Re: ManyToMany field creation problem

2013-12-06 Thread Mrinmoy Das
Any help guys?? Mrinmoy Das http://goromlagche.in/ On Fri, Dec 6, 2013 at 8:21 PM, Chi Tak Lam wrote: > I think you should do a > > python manage.py migrate property > > after > > python manage.py schemamigration property --auto? > > > On Friday, December 6, 2013 3:44:27 PM

Re: ManyToMany field creation problem

2013-12-06 Thread Chi Tak Lam
I think you should do a python manage.py migrate property after python manage.py schemamigration property --auto? On Friday, December 6, 2013 3:44:27 PM UTC+8, Mrinmoy Das wrote: > > Hi, > > I have these tables > > > on apps/common/models.py > > > class UnitType(models.Model): > title =

Re: ManyToMany field creation problem

2013-12-06 Thread Mrinmoy Das
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" Mrinmoy Das http://goromlagche.in/ On Fri, Dec 6, 2013 at 3:04

Re: ManyToMany field creation problem

2013-12-06 Thread Daniel Roseman
On Friday, 6 December 2013 07:44:27 UTC, Mrinmoy Das wrote: > > Hi, > > I have these tables > > > on apps/common/models.py > > > class UnitType(models.Model): > title = models.CharField(max_length=50) > > def __unicode__(self): > return u'%s' % self.title > > class

ManyToMany field creation problem

2013-12-05 Thread Mrinmoy Das
Hi, I have these tables on apps/common/models.py class UnitType(models.Model): title = models.CharField(max_length=50) def __unicode__(self): return u'%s' % self.title class UnitPrice(models.Model): project = models.ForeignKey('property.Property') unit_type =