So one method I found is to use the custom validation from a form in the
ModelAdmin:
http://docs.djangoproject.com/en/1.2/ref/contrib/admin/#adding-custom-validation-to-the-admin

However, this only seems to work on edits, not on adds.

How can I make this work on adds?

Jacob

On Thu, Jul 8, 2010 at 6:33 PM, Jacob Fenwick <jacob.fenw...@gmail.com>wrote:

> I'm looking for a way to automatically set is_active to true for new users
> that are added through the admin interface.
>
> I tried to subclass the User class and set the is_active default to true
> but apparently you can't override fields in a parent model:
>
> http://docs.djangoproject.com/en/1.2/topics/db/models/#field-name-hiding-is-not-permitted
>
> Is there some sort of ModelAdmin magic that could solve this problem?
>
> Or is there some other method that can be arrived at through subclassing
> the User object?
>
> Jacob
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to