def seed_data(apps, schema_editor):
        user = User(name='boris',
                    email='*****@*****.**',
                    is_staff=True,
                    is_superuser=True,
                    gender='Male')

        user.set_password('1234qwe')
        user.save()
Beispiel #2
0
 def seed_data(apps, schema_editor):
     user = User(
         name='sagar',
         email='*****@*****.**',
         is_staff=True,
         is_superuser=True,
     )
     user.set_password('12345')
     user.save()
 def seed_data(apps, schema_editor):
     user = User(name='Sumit',
                 email='*****@*****.**',
                 is_staff=True,
                 is_superuser=True,
                 phone='9876543210',
                 gender="Male",
                 address="17, Mayur Park Society")
     user.set_password('1234')
     user.save()