Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work with custom user models #13

Open
8 tasks
Mischback opened this issue May 12, 2018 · 0 comments
Open
8 tasks

Work with custom user models #13

Mischback opened this issue May 12, 2018 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@Mischback
Copy link
Owner

While django-auth_enhanced is designed to work with Django's default User-model, it should work with custom user models aswell, if some minimum requirements are met.

This issue is about implementing enough abstraction to work with these custom models, aswell as checking minimum requirements of these models.

  • be as abstract as possible
    • do not assume certain model fields are always present and decouple them
      • don't reference username (use get_user_model().USERNAME_FIELD)
      • don't reference email (use get_user_model().EMAIL_FIELD)
      • implement some tests using a minimal custom user model and see, if the app still works
    • check Django's documentation about a minimal user model and try to achieve the same minimum requirements
    • implement checks for these minimum requirements
      • probable required properties: is_active, is_staff, is_superuser
@Mischback Mischback added the enhancement New feature or request label May 12, 2018
@Mischback Mischback added this to the Release 1.0 milestone May 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant