mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
PEP8 cleanup
Signed-off-by: Jason Myers <jason@jasonamyers.com>
This commit is contained in:
parent
0fdb692c6c
commit
7a61c68c50
128 changed files with 739 additions and 206 deletions
|
@ -21,10 +21,12 @@ class Author(models.Model):
|
|||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
|
||||
class ArticleManager(models.Manager):
|
||||
def get_queryset(self):
|
||||
return super(ArticleManager, self).get_queryset().filter(authors__name__icontains='sir')
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Article(models.Model):
|
||||
authors = models.ManyToManyField(Author)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue