You don't have to do the commit=False thing. You can check if author is present in the clean() method, that will always be called.
On Sun, Jul 6, 2008 at 10:44 PM, Rob Hudson <[EMAIL PROTECTED]> wrote: > > So if I understand correctly, you are saying make author a > not-required field so is_valid() will validate to True. Then in my > view do the commit=False on save, check if author is present and if > not, set the default author, then call save(). Something like that? > > On Sun, Jul 6, 2008 at 11:35 AM, Alex Koshelev <[EMAIL PROTECTED]> wrote: > > > > Oh, `required=True` of course > > > > On Jul 6, 10:31 pm, Alex Koshelev <[EMAIL PROTECTED]> wrote: > >> Field for `author` created with `required=False`. And `clean` method > >> doesn't call `clean_author` if `author` data isn't present. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---