Re: auto_created getting ignored by makemigrations

2015-08-06 Thread Joey Espinosa
@zubair: The reason Django complained about wanting to create the LeaguePlayer intermediary model when you used "add()" is because you didn't have auto_created=True. That allows Django to link the objects correctly via the intermediary model automatically without populating any of the extra fields

Re: auto_created getting ignored by makemigrations

2015-08-06 Thread zubair alam
Hi Joey. I was trying to understand your models, relationship and logic behind them. How you are supposed to create a League object? I tried creating as follows. p=Player.objects.create(name='Shahid Afridi') l=League(name='FootballDevils') l.save() // not calling directly objects.create on Leagu

Re: auto_created getting ignored by makemigrations

2015-08-05 Thread Markus Holtermann
Hey Joey, not settings `auto_created=True` should do. /Markus On Thursday, August 6, 2015 at 1:17:09 PM UTC+10, JoeLinux wrote: > > Dear Anyone, > > I'm having an issue with a ManyToMany "through" table not being recognized > by the makemigrations command. Please consider the model definitions

auto_created getting ignored by makemigrations

2015-08-05 Thread Joey Espinosa
Dear Anyone, I'm having an issue with a ManyToMany "through" table not being recognized by the makemigrations command. Please consider the model definitions at the following pastebin: http://pastebin.ubuntu.com/12011412/ So, I have a Player model. Players are stored and updated in that model (als