Skip to content

Commit

Permalink
Silence field.W342 warning
Browse files Browse the repository at this point in the history
We don't use a OneToOneField for pootle_store.UnitSource.unit fore
technical reasons.  So silnce this to prevent us hiding other warnings.
Unfortunately we can't do this on a per field basis, so the whole check
is blocked.
  • Loading branch information
dwaynebailey committed Mar 2, 2017
1 parent 4fb9c5c commit d907e47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions pootle/settings/90-dev-local.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,5 @@ SILENCED_SYSTEM_CHECKS = [
'pootle.W005', # DEBUG = True
'pootle.W010', # DEFAULT_FROM_EMAIL has default setting
'pootle.W011', # POOTLE_CONTACT_EMAIL has default setting
'fields.W342', # pootle_store.UnitSource.unit: doesn't use OneToOneField
]
4 changes: 4 additions & 0 deletions pootle/settings/90-local.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -245,3 +245,7 @@ POOTLE_MT_BACKENDS = [
TEMPLATES[0]['DIRS'] = [
# working_path(os.path.join('custom', 'templates')),
]

SILENCED_SYSTEM_CHECKS = [
'fields.W342', # pootle_store.UnitSource.unit: doesn't use OneToOneField
]

0 comments on commit d907e47

Please sign in to comment.