Commit e7a8c6ac authored by David Seaward's avatar David Seaward

low-hanging fruit from code review

parent f9108547
from django.test import TestCase
# Create your tests here.
# Create your tests here.
...@@ -45,9 +45,6 @@ class User(AbstractUser): ...@@ -45,9 +45,6 @@ class User(AbstractUser):
}, },
) )
def __init__(self, *args, **kwargs):
super(User, self).__init__(*args, **kwargs)
@classmethod @classmethod
def normalize_username(cls, username): def normalize_username(cls, username):
username = super(User, cls).normalize_username(username) username = super(User, cls).normalize_username(username)
...@@ -60,10 +57,6 @@ class User(AbstractUser): ...@@ -60,10 +57,6 @@ class User(AbstractUser):
return username return username
def validate_unique(self, exclude=None):
return super(User, self).validate_unique(exclude)
def get_ldap(self): def get_ldap(self):
return LdapPerson.objects.get(uid=self.get_username()) return LdapPerson.objects.get(uid=self.get_username())
from django.test import TestCase
# Create your tests here.
-r requirements.txt
-r documentation.txt
-r requirements.txt
-r documentation.txt -r documentation.txt
-r requirements.txt
alabaster==0.7.10 alabaster==0.7.10
Babel==2.5.1 Babel==2.5.1
certifi==2017.7.27.1 certifi==2017.7.27.1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment