Skip to content

Commit

Permalink
Merging PR #34
Browse files Browse the repository at this point in the history
  • Loading branch information
carlio committed Jan 29, 2015
2 parents 9cf8eb2 + 1ebde0d commit ad982c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pylint_django/transforms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,7 @@ def set_fake_locals(module):
_add_transform('django.views.generic.base', 'View')
_add_transform('django.forms', 'Form')
_add_transform('django.forms', 'ModelForm')
_add_transform('django.db.models', 'Model')
_add_transform('django.db.models',
'Model',
'Manager')
_add_transform('django.utils.translation', 'ugettext_lazy')
5 changes: 5 additions & 0 deletions pylint_django/transforms/transforms/django_db_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ class Model(object):

MultipleObjectsReturned = None
DoesNotExist = None


# eliminate E1002 for Manager object
class Manager(object):
pass

0 comments on commit ad982c2

Please sign in to comment.