Merge pull request #217 from thequbit/master
change default email to @example.com from known valid address.
This commit is contained in:
@@ -59,7 +59,7 @@ def create_superuser_and_anonymous_user(sender, **kwargs):
|
|||||||
auth_models.User.objects.get(username=AUTO_ADMIN_USERNAME)
|
auth_models.User.objects.get(username=AUTO_ADMIN_USERNAME)
|
||||||
except auth_models.User.DoesNotExist:
|
except auth_models.User.DoesNotExist:
|
||||||
logger.info('Creating super admin user -- login: %s, password: %s', AUTO_ADMIN_USERNAME, AUTO_ADMIN_PASSWORD)
|
logger.info('Creating super admin user -- login: %s, password: %s', AUTO_ADMIN_USERNAME, AUTO_ADMIN_PASSWORD)
|
||||||
assert auth_models.User.objects.create_superuser(AUTO_ADMIN_USERNAME, 'autoadmin@autoadmin.com', AUTO_ADMIN_PASSWORD)
|
assert auth_models.User.objects.create_superuser(AUTO_ADMIN_USERNAME, 'autoadmin@example.com', AUTO_ADMIN_PASSWORD)
|
||||||
admin = auth_models.User.objects.get(username=AUTO_ADMIN_USERNAME)
|
admin = auth_models.User.objects.get(username=AUTO_ADMIN_USERNAME)
|
||||||
# Store the auto admin password properties to display the first login message
|
# Store the auto admin password properties to display the first login message
|
||||||
auto_admin_properties, created = AutoAdminSingleton.objects.get_or_create()
|
auto_admin_properties, created = AutoAdminSingleton.objects.get_or_create()
|
||||||
|
|||||||
Reference in New Issue
Block a user