From 08709fa3208a750e15f00c2f427754d633fa4375 Mon Sep 17 00:00:00 2001 From: Oliver Roick Date: Fri, 28 Apr 2017 10:02:28 +0200 Subject: [PATCH] Cleanup Party models --- cadasta/party/models.py | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/cadasta/party/models.py b/cadasta/party/models.py index 8cc6aae2c..c6f180c22 100644 --- a/cadasta/party/models.py +++ b/cadasta/party/models.py @@ -225,28 +225,6 @@ class TenureRelationship(ResourceModelMixin, RandomIDModel): Governs relationships between Party and SpatialUnit. """ - CONTRACTUAL_SHARE_CROP = 'CS' - CUSTOMARY_ARRANGEMENT = 'CA' - GIFT = 'GF' - HOMESTEAD = 'HS' - INFORMAL_OCCUPANT = 'IO' - INHERITANCE = 'IN' - LEASEHOLD = 'LH' - PURCHASED_FREEHOLD = 'PF' - RENTAL = 'RN' - OTHER = 'OT' - - ACQUIRED_CHOICES = ((CONTRACTUAL_SHARE_CROP, _('Contractual/Share Crop')), - (CUSTOMARY_ARRANGEMENT, _('Customary Arrangement')), - (GIFT, _('Gift')), - (HOMESTEAD, _('Homestead')), - (INFORMAL_OCCUPANT, _('Informal Occupant')), - (INHERITANCE, _('Inheritance')), - (LEASEHOLD, _('Leasehold')), - (PURCHASED_FREEHOLD, _('Purchased Freehold')), - (RENTAL, _('Rental')), - (OTHER, _('Other'))) - # All tenure relationships are associated with a single project project = models.ForeignKey( Project, on_delete=models.CASCADE, related_name='tenure_relationships') @@ -258,7 +236,7 @@ class TenureRelationship(ResourceModelMixin, RandomIDModel): spatial_unit = models.ForeignKey(SpatialUnit, on_delete=models.CASCADE) # Tenure relationships type: used to manage range of allowed attributes - tenure_type = models.CharField(max_length=10, null=False, blank=False) + tenure_type = models.CharField(max_length=10) # JSON attributes field with management of allowed members. attributes = JSONAttributeField(default={})