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()