Harshit Bansal
8ae54ddb99
actions.py: `restricted_to_domain` should be False if there are no aliases.
...
Having `restricted_to_domain` set to True if there are no more aliases
left means the user is either confused or forgot to set it to False. It
should be set to False automatically when the last alias is deleted.
2017-02-08 22:14:43 -08:00
Harshit Bansal
7d10cbc32b
Add RealmAlias.allow_subdomains to model, frontend, and API.
...
Includes a database migration.
Fixes #1868 .
2017-02-08 22:03:27 -08:00
Tim Abbott
87337e0d1f
test_realm_aliases: Edit new realm alias test for subdomains.
2017-01-30 11:55:50 -08:00
Harshit Bansal
9bbe0efd77
realm_aliases: Add a test for adding an alias which is already claimed.
...
Fixes : #3514 .
2017-01-30 11:55:50 -08:00
Harshit Bansal
b4186fdfdd
views/realm_aliases.py: Use domain instead of id as handle for RealmAlias.
...
We need to make the change for the API, and the next commit introduces a
unique_together constraint on (realm, domain) anyway.
2017-01-26 17:24:25 -08:00
Harshit Bansal
06cc306d00
Add stricter domain validation and improve error messages.
2017-01-26 17:24:25 -08:00
Tim Abbott
4e171ce787
lint: Clean up E126 PEP-8 rule.
2017-01-23 22:06:13 -08:00
Harshit Bansal
ceb636dbd9
Manage allowed domains from admin settings.
...
Fixes : #1867 .
2017-01-06 12:03:31 -08:00