PiRSquared17 / app-engine-patch

Automatically exported from code.google.com/p/app-engine-patch
0 stars 0 forks source link

Django Admin fails with EmailUser #227

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am using EmailUser in my model:

from ragendja.auth.models import EmailUser

class User(EmailUser):

## EmailUser has:
## email = db.EmailProperty(required=True, verbose_name=_('e-mail address'))

So, email address is required.

When I use the "Add User" function of Django Admin, I only get username and
password fields.  I get an error saying that the email address is required.

Must I go into ragendja.auth.models EmailUser and set required=False?

Or, is there a simpler way?

Original issue reported on code.google.com by ken...@gmail.com on 9 Oct 2009 at 6:14

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Partial fix:

I created my own custom AUTH_ADMIN_MODULE, copied from 
'ragendja.auth.google_admin',
so can customize fields in UserAdmin

in settings.py:

AUTH_ADMIN_MODULE= 'myapp.my_admin'

Original comment by ken...@gmail.com on 9 Oct 2009 at 10:06