Comments (5)
I think having the first name and last name in the profile model rather than the user model makes more sense. It may take some additional effort moving it over initially but makes the project structure much cleaner:
- User model - contains user-specific unique stuff (email and password used to login)
- Profile model - contains profile stuff (including first and last name)
from django-custom-user.
Yes, that behaviour is different from Django's User model, but can be easily implemented as explained in https://github.com/jcugat/django-custom-user#extending-emailuser-model
Maybe it could be a good idea to add another model to this package (let's say DjangoEmailUser
) with the fields first_name
and last_name
and both methods already implemented. Pull requests are welcome :)
from django-custom-user.
Personally, I think it's cleaner and less confusing if this app just provides a single model. Currently, the email replacing the username is just one of the differences. Would you be open to having the existing EmailUser
model modified so that the email replacing the username truly is the only difference? I think that's what most people are after anyway (and that's what this app's description says). I realize that's a pretty major change (and not backwards compatible), so maybe that would be a good time to bump the version up to 1.0. What do you think? Too drastic of a change? Are you set on having two separate models?
from django-custom-user.
That is exactly what I'm looking for. Honestly, I can't believe there is not a package that does just that. There used to be, but it is no longer maintained, and doesn't support newer versions of Django.
from django-custom-user.
+1
from django-custom-user.
Related Issues (20)
- Accessor for m2m field 'groups' clashes with related m2m field 'Group.user_set'. HOT 6
- Password field showing as editable in admin when extending EmailUser HOT 1
- Edit New issue Subclassing AbstractEmailUser does not prompt for superuser on syncdb to blank database HOT 2
- ImportError: No module named 'custom_usermail' after install HOT 1
- A server error occurred. Please contact the administrator. HOT 3
- Bad Syntax in Readme? HOT 1
- Fix test error in Django 1.7.2
- Instructions aren't quite complete HOT 8
- Problem extending EmailUser HOT 1
- EmailUser considers [email protected] and [email protected] different users HOT 11
- migration not included in python package, causing migrations not to run HOT 6
- MySQL error on migration: (1071, 'Specified key was too long; max key length is 767 bytes') HOT 3
- Not working in Django 1.9 HOT 1
- Change password link in EmailUserChangeForm does not work since Django 1.9 HOT 2
- Prevent user registration - when any UserProfile filed is invalid HOT 1
- "Change password" admin page is missing HOT 7
- Emails are not being validated HOT 1
- never mind please delete
- Deprecation warning for ugettext_lazy HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-custom-user.