django.contrib.auth get_user_model Example Code

Django's get_user_model function is the appropriate way of referencing the Django User model rather than a direct import of User.

Example 1 from dccnsys

dccnsys is a conference registration web app built in Django. The code is open source under the MIT license.

dccnsys / wwwdccn / registration / views.py