This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
from django.contrib.auth.models import (AbstractBaseUser, BaseUserManager, | |
PermissionsMixin) | |
class UserManager(BaseUserManager): | |
""" | |
Database model for users in the system | |
""" | |
def create_user(self, email, password=None, **extra_fields): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# <DEFAULT> # warning: text inside the DEFAULT tags is auto-generated. Manual changes will be overwritten. | |
# OS generated | |
.DS_Store | |
.DS_Store? | |
._* | |
.Spotlight-V100 | |
.Trashes | |
ehthumbs.db | |
Thumbs.db | |
*~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager | |
class UserProfileManager(BaseUserManager): | |
""" | |
Manager for user profile | |
""" | |
def create_user(self, username, email, password=None): | |
""" |