Arrrg. Ok, so all typo's fixed, the code does work correctly... so
there must be a rogue try except block out there intercepting errors
and not sending them on to my logger. Thanks
On Feb 6, 7:38 am, Karen Tracey wrote:
> On Thu, Feb 5, 2009 at 2:08 PM, Silfheed
On Thu, Feb 5, 2009 at 2:08 PM, Silfheed wrote:
>
> No, not a direct cut and paste (I guess I should have)
>
> class person(models.Model):
>gender = models.CharField(max_length=1, choices=(('M','male'),
> ('F','female')))
>other = models.CharField(manx_length=20,
grr.. cut and paste and I still leave off the last parenthesis...
super(person, self).save(force_insert, force_update)
Anyway, the code is syntactically correct, I just tried it out in a
little test environment I set up.
Thanks again
On Feb 5, 11:08 am, Silfheed
No, not a direct cut and paste (I guess I should have)
class person(models.Model):
gender = models.CharField(max_length=1, choices=(('M','male'),
('F','female')))
other = models.CharField(manx_length=20, null=True,blank=True)
def save(self, force_insert=False, force_update=False):
On Wed, Feb 4, 2009 at 11:39 PM, Silfheed wrote:
>
> Heyas
>
> So I'm sure this is pretty basic, but I don't seem to be able to get
> the following to work and I cant seem to find suitable info on google
> or the django site.
>
> I've got my model:
>
> class
Heyas
So I'm sure this is pretty basic, but I don't seem to be able to get
the following to work and I cant seem to find suitable info on google
or the django site.
I've got my model:
class person(models.Model):
gender = models.CharField(max_length=1, choices=(('M','male'),
('F','female))
6 matches
Mail list logo