diff --git a/postcodes/management/commands/loadpostcodeconcordance.py b/postcodes/management/commands/loadpostcodeconcordance.py index 5e3194a..5b8266d 100644 --- a/postcodes/management/commands/loadpostcodeconcordance.py +++ b/postcodes/management/commands/loadpostcodeconcordance.py @@ -26,9 +26,13 @@ def add_arguments(self, parser): parser.add_argument('slug', nargs=1) parser.add_argument('source', nargs=1) parser.add_argument('filename', nargs='?') - parser.add_argument('--searchfield', action='store', dest='search-field', + parser.add_argument( + '--searchfield', + action='store', + dest='search-field', default='external_id', - help="Set the SQL column to which the second column of the CSV corresponds. One of 'external_id' (default), 'name' or 'slug'.") + help="Set the SQL column to which the second column of the CSV corresponds. One of 'external_id' (default), 'name' or 'slug'.", + ) @transaction.atomic def handle(self, *args, **options): diff --git a/setup.cfg b/setup.cfg index f6f36ff..a00ed92 100644 --- a/setup.cfg +++ b/setup.cfg @@ -21,7 +21,5 @@ profile = black [flake8] exclude = postcodes/migrations extend-ignore = - # E128 continuation line under-indented for visual indent - E128, # E501 line too long (X > 79 characters) E501