Skip to content

Commit

Permalink
__str__() method for CensusPlace model
Browse files Browse the repository at this point in the history
  • Loading branch information
ghing committed Dec 9, 2014
1 parent 505d4ea commit 655a996
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions convictions_data/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,9 @@ class CensusPlace(ConvictionsAggregateMixin, CensusFieldsMixin, geo_models.Model

GEOJSON_FIELDS = GEOJSON_FIELDS_BASE

def __str__(self):
return self.name

@classmethod
def get_conviction_related_column_name(cls):
return 'place_id'
Expand Down

0 comments on commit 655a996

Please sign in to comment.