Code cleanups

PEP8 cleanups. Add keyword arguments.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-05-21 00:56:22 -04:00
parent fbe0e14b82
commit 4baeb6ce7e
219 changed files with 1891 additions and 507 deletions

View File

@@ -176,7 +176,9 @@ class EventType(object):
def get_stored_event_type(self):
if not self.stored_event_type:
StoredEventType = apps.get_model('events', 'StoredEventType')
StoredEventType = apps.get_model(
app_label='events', model_name='StoredEventType'
)
self.stored_event_type, created = StoredEventType.objects.get_or_create(
name=self.id