From bae69f7eae3361b38b391d519a545a6ccb198cea Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Wed, 26 Jun 2024 15:49:34 -0400 Subject: [PATCH] chore: Move slug_re to top of file --- boundaries/models.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/boundaries/models.py b/boundaries/models.py index 5d495e9..7521b52 100644 --- a/boundaries/models.py +++ b/boundaries/models.py @@ -30,6 +30,7 @@ class MyAppConf(AppConf): app_settings = MyAppConf() +slug_re = re.compile(r'[–—]') # n-dash, m-dash class BoundarySet(models.Model): @@ -393,9 +394,6 @@ def geometry_to_multipolygon(geometry): ) -slug_re = re.compile(r'[–—]') # n-dash, m-dash - - class Feature: # @see https://github.com/django/django/blob/master/django/contrib/gis/gdal/feature.py