Add rabbit and trotec cert dates

This commit is contained in:
Tanner Collin 2020-09-13 22:07:04 +00:00
parent 28b8de41a8
commit 44d50735bf
2 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,8 @@ class Member(models.Model):
wood_cert_date = models.DateField(blank=True, null=True, default=None) wood_cert_date = models.DateField(blank=True, null=True, default=None)
wood2_cert_date = models.DateField(blank=True, null=True, default=None) wood2_cert_date = models.DateField(blank=True, null=True, default=None)
cnc_cert_date = models.DateField(blank=True, null=True, default=None) cnc_cert_date = models.DateField(blank=True, null=True, default=None)
rabbit_cert_date = models.DateField(blank=True, null=True, default=None)
trotec_cert_date = models.DateField(blank=True, null=True, default=None)
paused_date = models.DateField(blank=True, null=True) paused_date = models.DateField(blank=True, null=True)
monthly_fees = models.IntegerField(default=55, blank=True, null=True) monthly_fees = models.IntegerField(default=55, blank=True, null=True)

View File

@ -144,6 +144,8 @@ class MemberSerializer(serializers.ModelSerializer):
'wood_cert_date', 'wood_cert_date',
'wood2_cert_date', 'wood2_cert_date',
'cnc_cert_date', 'cnc_cert_date',
'rabbit_cert_date',
'trotec_cert_date',
] ]
def get_status(self, obj): def get_status(self, obj):