f not getattr(self, field.name): setattr(self, field.name, field.get_default())super(User, self).save()
I really don't like this solution, but it works, and does not require any changes/patches to the django libraries.Cheers,-jOn 6/21/06,
Jamie Scheinblum <[EM
Hi,I'm having trouble with default values in my model. I've tried to establish what the default for a column should be when the input doesn't supply a value. The model defaults seem to work fine when using django's python shell, but when I use either the admin interface or my own view, the defaul
that's funny. they answered how to do the tree thing, but the wiki
basically says no recursion... I should look into the % recurse %
keyword tho.
-j
On 2/7/06, Shannon -jj Behrens <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm trying to build ye ol' bulletin board application to try out
> Django.
3 matches
Mail list logo