from django.db import models
from location_field.models.plain import PlainLocationField


class Place(models.Model):
    parent_place = models.ForeignKey('self', null=True, blank=True)
    city = models.CharField(max_length=255)
    location = PlainLocationField(based_fields=[city], zoom=7)

from django.db import models
from location_field.models.plain import PlainLocationField


class Place(models.Model):
    parent_place = models.ForeignKey('self', null=True, blank=True)
    city = models.CharField(max_length=255)
    location = PlainLocationField(based_fields=['city'], zoom=7)

Use field name instead of field instance
Use field name instead of field instance
