From 462c15f48f70e73df9f386d7d5d89c5bdb166f5c Mon Sep 17 00:00:00 2001 From: Gianni Moschini Date: Thu, 30 Aug 2018 17:34:13 +0100 Subject: [PATCH] Use swapper for reference to AlternativeName --- cities/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cities/models.py b/cities/models.py index 841bdcad..958ce5b2 100644 --- a/cities/models.py +++ b/cities/models.py @@ -75,7 +75,7 @@ def save(self, *args, **kwargs): @python_2_unicode_compatible class Place(models.Model): name = models.CharField(max_length=200, db_index=True, verbose_name="ascii name") - alt_names = models.ManyToManyField('AlternativeName') + alt_names = models.ManyToManyField(swapper.get_model_name('cities', 'AlternativeName')) objects = GeoManager()