Re: Problem with get_or_create

2012-04-23 Thread Denis Darii
Murilo, try to debug your "task" variable - must be an int. Also next time please provide full traceback of your error. On 23 April 2012 17:42, akaariai wrote: > On Apr 23, 4:26 pm, Murilo Vicentini > wrote: > > Hey guys, > > I'm having a bit of a problem using the get_or_create with a > > Many

Re: Problem with get_or_create

2012-04-23 Thread akaariai
On Apr 23, 4:26 pm, Murilo Vicentini wrote: > Hey guys, > I'm having a bit of a problem using the get_or_create with a > ManyToManyField in my model. > class Run(models.Model): >         distros = models.ForeignKey('Distro') >         compilers = models.ManyToManyField('Compiler', blank=True, > nu

Problem with get_or_create

2012-04-23 Thread Murilo Vicentini
Hey guys, I'm having a bit of a problem using the get_or_create with a ManyToManyField in my model. class Run(models.Model): distros = models.ForeignKey('Distro') compilers = models.ManyToManyField('Compiler', blank=True, null=True) adapters = models.ForeignKey('Adapter')

Re: Problem with get_or_create

2006-06-18 Thread Istvan
In your listing line 24 is not aligned properly. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this grou

Re: Problem with get_or_create

2006-06-17 Thread Adrian Holovaty
On 6/16/06, Dan M <[EMAIL PROTECTED]> wrote: > http://django.pastebin.com/713980 contains my models.py and the > traceback when my Python script dies. It parses the data file fine, and > it does the first 2 get_or_creates just fine, but dies on the 3rd one. > The last line of the traceback says: >

Problem with get_or_create

2006-06-16 Thread Dan M
I'm brand new to Django, and am writing my very first real live Django app now. My app is going to keep track of a bunch of server info for a bunch of servers. Colelcting most of the info is simple, except for the one Windows box in the bunch. I finally found a vbs script that gave me the info