Throw away migration history. This is backwards incompatible!

Also, add an initial user in the first migration.
This commit is contained in:
Raphael Michel
2015-05-21 21:16:39 +02:00
parent bd59da6e25
commit c16ad60129
28 changed files with 177 additions and 971 deletions

View File

@@ -109,10 +109,10 @@ class UserManager(BaseUserManager):
user.save()
return user
def create_superuser(self, identifier, username, password=None):
def create_superuser(self, identifier, password=None):
if password is None:
raise Exception("You must provide a password")
user = self.model(identifier=identifier, username=username)
user = self.model(identifier=identifier, email=identifier)
user.is_staff = True
user.is_superuser = True
user.set_password(password)