From d907e47af940beb5fce554096ee42038f8834783 Mon Sep 17 00:00:00 2001 From: Dwayne Bailey Date: Thu, 2 Mar 2017 16:09:11 +0000 Subject: [PATCH] Silence field.W342 warning 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. --- pootle/settings/90-dev-local.conf.sample | 1 + pootle/settings/90-local.conf.template | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/pootle/settings/90-dev-local.conf.sample b/pootle/settings/90-dev-local.conf.sample index a4d2bc4db7e..4117eb8f2d8 100644 --- a/pootle/settings/90-dev-local.conf.sample +++ b/pootle/settings/90-dev-local.conf.sample @@ -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 ] diff --git a/pootle/settings/90-local.conf.template b/pootle/settings/90-local.conf.template index 715eace514e..0d564aca264 100644 --- a/pootle/settings/90-local.conf.template +++ b/pootle/settings/90-local.conf.template @@ -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 +]