Add fields for public bio and private notes to API
This commit is contained in:
parent
1d0456089f
commit
4de91204f9
|
@ -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)
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user