Re: Django South - SyntaxError: invalid syntax (, line 1)

2013-10-01 Thread Chris
Ivan, Did this code paste correctly? There is a syntax error in the save method: def save (self, force_insert = False, force_update = False): self.nome self.nome.upper = () <--- SYNTAX ERROR super (Carrier, self). save (force_insert, force_update) Is that supposed to be:

Re: Django South - SyntaxError: invalid syntax (, line 1)

2013-10-01 Thread Leonardo Giordani
Can you use the models.py file with the user field on a bare DB? I mean: if you start from scratch with an empty DB everything works correctly? You can create Carriers from the Django shell? Leonardo Giordani Author of The Digital Cat My profile on About.me

Django South - SyntaxError: invalid syntax (, line 1)

2013-09-30 Thread Ivan Goncalves
Hi I'm having trouble with the South. In the model below: class Carrier (models.Model): name = models.CharField (max_length = 40, blank = False, null = False, verbose_name = 'Name') user = models.ForeignKey (User, blank = True, null = True) def save (self, force_insert