Remove address fields from database

This commit is contained in:
Tanner Collin 2022-04-28 21:35:52 +00:00
parent c2f9295585
commit 14c325f155
2 changed files with 0 additions and 9 deletions

View File

@ -32,9 +32,6 @@ class Member(models.Model):
birthdate = models.DateField(blank=True, null=True) birthdate = models.DateField(blank=True, null=True)
is_minor = models.BooleanField(default=False) is_minor = models.BooleanField(default=False)
guardian_name = models.CharField(max_length=32, blank=True, null=True) guardian_name = models.CharField(max_length=32, blank=True, null=True)
street_address = models.CharField(default='', max_length=32, null=True)
city = models.CharField(default='Calgary, AB', max_length=32)
postal_code = models.CharField(max_length=16, null=True)
public_bio = models.CharField(max_length=512, blank=True) public_bio = models.CharField(max_length=512, blank=True)
private_notes = models.CharField(max_length=512, blank=True) private_notes = models.CharField(max_length=512, blank=True)

View File

@ -170,9 +170,6 @@ class MemberSerializer(serializers.ModelSerializer):
crop = serializers.CharField(write_only=True, required=False) crop = serializers.CharField(write_only=True, required=False)
email = fields.UserEmailField(serializers.EmailField) email = fields.UserEmailField(serializers.EmailField)
phone = serializers.CharField() phone = serializers.CharField()
street_address = serializers.CharField(required=False)
city = serializers.CharField(required=False)
postal_code = serializers.CharField(required=False)
class Meta: class Meta:
model = models.Member model = models.Member
@ -254,9 +251,6 @@ class MemberSerializer(serializers.ModelSerializer):
# admin viewing member details # admin viewing member details
class AdminMemberSerializer(MemberSerializer): class AdminMemberSerializer(MemberSerializer):
phone = serializers.CharField(required=False) phone = serializers.CharField(required=False)
street_address = serializers.CharField(required=False)
city = serializers.CharField(required=False)
postal_code = serializers.CharField(required=False)
monthly_fees = serializers.ChoiceField([10, 30, 35, 50, 55]) monthly_fees = serializers.ChoiceField([10, 30, 35, 50, 55])
class Meta: class Meta: