Re: Admin site not using my overridden save()?

2009-02-08 Thread Silfheed
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

Re: Admin site not using my overridden save()?

2009-02-06 Thread Karen Tracey
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,

Re: Admin site not using my overridden save()?

2009-02-05 Thread Silfheed
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

Re: Admin site not using my overridden save()?

2009-02-05 Thread 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):

Re: Admin site not using my overridden save()?

2009-02-04 Thread Karen Tracey
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

Admin site not using my overridden save()?

2009-02-04 Thread Silfheed
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))