示例#1
0
 def setUp(self):
     add_trigger_function()
     change_detect(Pizza)
     self.user = User(username='******', is_superuser=True)
     self.user.set_password('password')
     self.user.save()
示例#2
0
 def setUp(self):
     add_trigger_function()
     self.user = User(username='******', is_superuser=True)
     self.user.set_password('password')
     self.user.save()
     self.client.login(username='******', password='******')
 def setUp(self):
     add_trigger_function()
     change_detect(Pizza)
     self.user = User(username='******', is_superuser=True)
     self.user.set_password('password')
     self.user.save()
示例#4
0
 def setUp(self):
     add_trigger_function()
     self.user = User(username='******', is_superuser=True)
     self.user.set_password('password')
     self.user.save()
     self.client.login(username='******', password='******')