Browse Source

Get rid of 'Custom' in admin site.

feature/python-error-tracking
Drew Larson 8 years ago
parent
commit
ebb2b80c77
  1. 4
      bikeshop_project/registration/models.py

4
bikeshop_project/registration/models.py

@ -63,6 +63,10 @@ class CustomUser(AbstractBaseUser, PermissionsMixin):
def __str__(self): # __unicode__ on Python 2 def __str__(self): # __unicode__ on Python 2
return self.email return self.email
class Meta:
verbose_name = 'User'
verbose_name_plural = 'Users'
class Member(models.Model): class Member(models.Model):
user = models.OneToOneField(CustomUser, on_delete=models.CASCADE, null=True) user = models.OneToOneField(CustomUser, on_delete=models.CASCADE, null=True)

Loading…
Cancel
Save