Refs #33476 -- Reformatted code with Black.

This commit is contained in:
django-bot 2022-02-03 20:24:19 +01:00 committed by Mariusz Felisiak
parent f68fa8b45d
commit 9c19aff7c7
1992 changed files with 139577 additions and 96284 deletions

View file

@ -36,10 +36,11 @@ class Person(models.Model):
.. include:: admin_docs/evilfile.txt
"""
first_name = models.CharField(max_length=200, help_text="The person's first name")
last_name = models.CharField(max_length=200, help_text="The person's last name")
company = models.ForeignKey(Company, models.CASCADE, help_text="place of work")
family = models.ForeignKey(Family, models.SET_NULL, related_name='+', null=True)
family = models.ForeignKey(Family, models.SET_NULL, related_name="+", null=True)
groups = models.ManyToManyField(Group, help_text="has membership")
def _get_full_name(self):
@ -55,13 +56,13 @@ class Person(models.Model):
@property
def a_property(self):
return 'a_property'
return "a_property"
@cached_property
def a_cached_property(self):
return 'a_cached_property'
return "a_cached_property"
def suffix_company_name(self, suffix='ltd'):
def suffix_company_name(self, suffix="ltd"):
return self.company.name + suffix
def add_image(self):