def METHOD_NAME(self, obj):
    qs = City.objects.filter(published=True)
    if obj.start_point:
        city = qs.filter(geom__covers=(obj.start_point, 0)).first()
        if city:
            return city.code
    return None