Skip to content

Commit

Permalink
Merge 5300fb7 into 2193e8b
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Jan 18, 2018
2 parents 2193e8b + 5300fb7 commit fce0757
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions test/input/func_noerror_import_q.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"""
Checks that Pylint does not complain about import of Q.
"""
# pylint: disable=missing-docstring,unused-import
from django.db.models import Q
3 changes: 2 additions & 1 deletion test/input/func_noerror_manytomanyfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class Book(models.Model):

class Author(models.Model):
name = models.CharField(max_length=100)
wrote = models.ManyToManyField(Book, verbose_name="Book")
wrote = models.ManyToManyField(Book, verbose_name="Book",
related_name='books')

def get_good_books(self):
return self.wrote.filter(good=True)
Expand Down

0 comments on commit fce0757

Please sign in to comment.