Add fields for public bio and private notes to API

This commit is contained in:
Tanner Collin 2020-05-01 03:20:37 +00:00
parent 1d0456089f
commit 4de91204f9
2 changed files with 4 additions and 1 deletions

View File

@ -35,6 +35,8 @@ class Member(models.Model):
street_address = models.CharField(default='', max_length=32, null=True) street_address = models.CharField(default='', max_length=32, null=True)
city = models.CharField(default='Calgary, AB', max_length=32) city = models.CharField(default='Calgary, AB', max_length=32)
postal_code = models.CharField(max_length=16, null=True) postal_code = models.CharField(max_length=16, null=True)
public_bio = models.CharField(max_length=512, blank=True)
private_notes = models.CharField(max_length=512, blank=True)
is_director = models.BooleanField(default=False) is_director = models.BooleanField(default=False)
is_staff = models.BooleanField(default=False) is_staff = models.BooleanField(default=False)

View File

@ -93,7 +93,8 @@ class OtherMemberSerializer(serializers.ModelSerializer):
'status', 'status',
'current_start_date', 'current_start_date',
'photo_small', 'photo_small',
'photo_large' 'photo_large',
'public_bio',
] ]
def get_status(self, obj): def get_status(self, obj):