mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-26 08:20:46 +03:00
Add email
kwarg to create_user for Django <1.4 compatibility (thanks @travisbot !)
This commit is contained in:
parent
b685a22f2c
commit
a07c615905
|
@ -235,7 +235,7 @@ class TestModelUpdate(TestModelsTestCase):
|
|||
group = Group(name='foo')
|
||||
group.save()
|
||||
|
||||
user = User.objects.create_user(username='bar', password='blah')
|
||||
user = User.objects.create_user(username='bar', password='blah', email="bar@example.com")
|
||||
self.assertEquals(1, User.objects.count())
|
||||
self.assertEquals(0, user.groups.count())
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user