From f47f8617d91065351698197f5594c0b4511829eb Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 14 Jun 2012 01:27:01 +0530 Subject: [PATCH] add nice verbose_names --- openmumbai/places/models.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/openmumbai/places/models.py b/openmumbai/places/models.py index c71500c..d271ec9 100644 --- a/openmumbai/places/models.py +++ b/openmumbai/places/models.py @@ -38,12 +38,19 @@ class Fort(AreaModel): class HillForest(AreaModel): pass + class Meta: + verbose_name_plural = "Hills and Forests" + verbose_name = "Hill / Forest" + class Waterfront(AreaModel): pass class Beach(AreaModel): pass + class Meta: + verbose_name_plural = "Beaches" + class DevelopmentModel(BaseModel): pk_serial = models.IntegerField(null=True, blank=True) name = models.CharField(max_length=1024, blank=True) @@ -63,9 +70,18 @@ class River(DevelopmentModel): class CreekWetland(DevelopmentModel): pass + class Meta: + verbose_name = "Creek / Wetland" + verbose_name_plural = "Creeks and Wetlands" + + class WaterBody(DevelopmentModel): pass + class Meta: + verbose_name = "Water body" + verbose_name_plural = "Water bodies" + class Nullah(DevelopmentModel): pass