python - "Partial Inheriting" from a Django model -


i know partial inheriting not possible. need create user model django apps, want use user class defined in django. not need username field, set required.

suppose inherit user myuser. possible delete username attribute in myuser. i.e. del myuser.username? or can suggest other way this?

the username field required - otherwise users cannot login.

if want have email address username - starting django 1.5, can create own custom user model work default model comes django.

in custom user model, set username_field property name of column want use username. column must unique.

there lot of work have do, , should done @ start of project these changes require database updates.

you should read documentation started.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -