mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-18 22:26:34 +00:00
Fix linting
This commit is contained in:
parent
b7965ce2ae
commit
d9d34d8220
4 changed files with 5 additions and 5 deletions
|
@ -93,7 +93,7 @@ class Book(BookDataModel):
|
||||||
published_date = fields.DateTimeField(blank=True, null=True)
|
published_date = fields.DateTimeField(blank=True, null=True)
|
||||||
|
|
||||||
objects = InheritanceManager()
|
objects = InheritanceManager()
|
||||||
field_tracker = FieldTracker(fields=['authors', 'title', 'subtitle', 'cover'])
|
field_tracker = FieldTracker(fields=["authors", "title", "subtitle", "cover"])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def author_text(self):
|
def author_text(self):
|
||||||
|
|
|
@ -49,7 +49,7 @@ class SiteSettings(models.Model):
|
||||||
admin_email = models.EmailField(max_length=255, null=True, blank=True)
|
admin_email = models.EmailField(max_length=255, null=True, blank=True)
|
||||||
footer_item = models.TextField(null=True, blank=True)
|
footer_item = models.TextField(null=True, blank=True)
|
||||||
|
|
||||||
field_tracker = FieldTracker(fields=['name', 'instance_tagline', 'logo'])
|
field_tracker = FieldTracker(fields=["name", "instance_tagline", "logo"])
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get(cls):
|
def get(cls):
|
||||||
|
|
|
@ -307,7 +307,7 @@ class Review(Status):
|
||||||
max_digits=3,
|
max_digits=3,
|
||||||
)
|
)
|
||||||
|
|
||||||
field_tracker = FieldTracker(fields=['rating'])
|
field_tracker = FieldTracker(fields=["rating"])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def pure_name(self):
|
def pure_name(self):
|
||||||
|
|
|
@ -123,7 +123,7 @@ class User(OrderedCollectionPageMixin, AbstractUser):
|
||||||
|
|
||||||
name_field = "username"
|
name_field = "username"
|
||||||
property_fields = [("following_link", "following")]
|
property_fields = [("following_link", "following")]
|
||||||
field_tracker = FieldTracker(fields=['name', 'avatar'])
|
field_tracker = FieldTracker(fields=["name", "avatar"])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def following_link(self):
|
def following_link(self):
|
||||||
|
|
Loading…
Reference in a new issue