File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ class ProjectRelationshipBaseForm(forms.ModelForm):
268
268
269
269
class Meta (object ):
270
270
model = ProjectRelationship
271
- exclude = []
271
+ fields = '__all__'
272
272
273
273
def __init__ (self , * args , ** kwargs ):
274
274
self .project = kwargs .pop ('project' )
@@ -634,7 +634,7 @@ class DomainForm(forms.ModelForm):
634
634
635
635
class Meta (object ):
636
636
model = Domain
637
- exclude = ['machine' , 'cname' , 'count' ]
637
+ exclude = ['machine' , 'cname' , 'count' ] # pylint: disable=modelform-uses-exclude
638
638
639
639
def __init__ (self , * args , ** kwargs ):
640
640
self .project = kwargs .pop ('project' , None )
@@ -674,7 +674,7 @@ class IntegrationForm(forms.ModelForm):
674
674
675
675
class Meta (object ):
676
676
model = Integration
677
- exclude = ['provider_data' , 'exchanges' ]
677
+ exclude = ['provider_data' , 'exchanges' ] # pylint: disable=modelform-uses-exclude
678
678
679
679
def __init__ (self , * args , ** kwargs ):
680
680
self .project = kwargs .pop ('project' , None )
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ def prune_point(self, num_latest):
74
74
try :
75
75
self ._state [major ][minor ] = sorted (
76
76
set (self ._state [major ][minor ]))[- num_latest :]
77
- except TypeError :
77
+ except TypeError : # pylint: disable=try-except-raise
78
78
# Raise these for now.
79
79
raise
80
80
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ def parse_branches(self, data):
171
171
delimiter = str (' ' ).encode ('utf-8' ) if PY2 else str (' ' )
172
172
raw_branches = csv .reader (StringIO (data ), delimiter = delimiter )
173
173
for branch in raw_branches :
174
- branch = [f for f in branch if f != '' and f != '*' ]
174
+ branch = [f for f in branch if f not in ( '' , '*' ) ]
175
175
# Handle empty branches
176
176
if branch :
177
177
branch = branch [0 ]
Original file line number Diff line number Diff line change 8
8
# This application object is used by any WSGI server configured to use this
9
9
# file. This includes Django's development server, if the WSGI_APPLICATION
10
10
# setting points here.
11
- from django .core .wsgi import get_wsgi_application # pylint: disable=wrong-import-position
11
+ from django .core .wsgi import get_wsgi_application # pylint: disable=wrong-import-position # noqa
12
12
application = get_wsgi_application ()
13
13
14
14
# Apply WSGI middleware here.
You can’t perform that action at this time.
0 commit comments