From dc3dc525e16b9341ecd29d95c81bd04ad1886770 Mon Sep 17 00:00:00 2001 From: yackob03 Date: Mon, 2 Dec 2013 18:15:59 -0500 Subject: [PATCH] Style fixes. --- data/database.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/data/database.py b/data/database.py index ab30d2d22..6e1784db7 100644 --- a/data/database.py +++ b/data/database.py @@ -217,8 +217,9 @@ class LogEntryKind(BaseModel): class LogEntry(BaseModel): kind = ForeignKeyField(LogEntryKind, index=True) - account = ForeignKeyField(User, index=True, related_name = 'account') - performer = ForeignKeyField(User, index=True, null=True, related_name = 'performer') + account = ForeignKeyField(User, index=True, related_name='account') + performer = ForeignKeyField(User, index=True, null=True, + related_name='performer') repository = ForeignKeyField(Repository, index=True, null=True) access_token = ForeignKeyField(AccessToken, null=True) datetime = DateTimeField(default=datetime.now, index=True) @@ -229,4 +230,5 @@ class LogEntry(BaseModel): all_models = [User, Repository, Image, AccessToken, Role, RepositoryPermission, Visibility, RepositoryTag, EmailConfirmation, FederatedLogin, LoginService, QueueItem, - RepositoryBuild, Team, TeamMember, TeamRole, Webhook, LogEntryKind, LogEntry] + RepositoryBuild, Team, TeamMember, TeamRole, Webhook, + LogEntryKind, LogEntry]