[schema] Add realms to the schema.

Note that realms aren't actually used for anything, aren't prompted
for, etc, so this is mostly just a schema change and the refactoring
needed to allow setting the realm in the future.

(imported from commit b8b483dcc9601b288702284879e9c99707a50a5c)
This commit is contained in:
Tim Abbott
2012-09-05 15:49:56 -04:00
parent 4dd1567426
commit 38b30e5997
6 changed files with 41 additions and 18 deletions

View File

@@ -17,7 +17,7 @@ class AuthedTestCase(TestCase):
def register(self, username, password):
return self.client.post('/accounts/register/',
{'username':username, 'password':password})
{'username':username, 'password':password, 'domain':'humbughq.com'})
def send_zephyr(self, sender_name, recipient_name, zephyr_type):
sender = UserProfile.objects.get(user=User.objects.get(username=sender_name))