Style fixes.

This commit is contained in:
yackob03 2013-12-02 18:15:59 -05:00
parent ddc4896351
commit dc3dc525e1

View file

@ -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]