models: Add USER_CREATED event type constant to RealmAuditLog.

This commit is contained in:
Vishnu Ks
2018-07-09 15:41:56 +05:30
committed by Tim Abbott
parent 4d1a68430a
commit 2c8effe9fe
6 changed files with 18 additions and 15 deletions

View File

@@ -31,7 +31,7 @@ class Command(BaseCommand):
realm=realm, short_name=full_name, pointer=-1, last_pointer_updater='none',
api_key='42', date_joined=date_joined)
RealmAuditLog.objects.create(
realm=realm, modified_user=user, event_type='user_created',
realm=realm, modified_user=user, event_type=RealmAuditLog.USER_CREATED,
event_time=user.date_joined)
return user