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 wrote: > > >

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 wrote: > No, no

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

2009-02-05 Thread Silfheed
l. It's only when I use the admin page to add or create a person that it doesnt work. Am I supposed to set up a form and use a form_save() as well or is the above look correct? Thanks On Feb 4, 8:55 pm, Karen Tracey wrote: > On Wed, Feb 4, 2009 at 11:39 PM, Silfheed wrote: > >

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))

Django and mysql SET datatype?

2008-06-09 Thread Silfheed
Heyas So we have a table which makes use of mysql's SET datatype to store the status of a page ('active','inappropriate','optout') with the status being any combination of the three. This helps us keep the complexity of our schemas down since we just need one column (rather than 3 tables) to rep