move code linting to a stricter pep8-esque auto-formatting tool, black

This commit is contained in:
Ryan Petrello
2021-03-19 12:44:51 -04:00
parent 9b702e46fe
commit c2ef0a6500
671 changed files with 20538 additions and 21924 deletions

View File

@@ -16,9 +16,9 @@ __all__ = ['ActivityStream']
class ActivityStream(models.Model):
'''
"""
Model used to describe activity stream (audit) events
'''
"""
class Meta:
app_label = 'main'
@@ -29,7 +29,7 @@ class ActivityStream(models.Model):
('update', _("Entity Updated")),
('delete', _("Entity Deleted")),
('associate', _("Entity Associated with another Entity")),
('disassociate', _("Entity was Disassociated with another Entity"))
('disassociate', _("Entity was Disassociated with another Entity")),
]
actor = models.ForeignKey('auth.User', null=True, on_delete=models.SET_NULL, related_name='activity_stream')
@@ -85,8 +85,6 @@ class ActivityStream(models.Model):
o_auth2_application = models.ManyToManyField("OAuth2Application", blank=True)
o_auth2_access_token = models.ManyToManyField("OAuth2AccessToken", blank=True)
setting = JSONField(blank=True)
def __str__(self):