Fakultas Ilmu Komputer UI

Commit de78763f authored by addffa's avatar addffa
Browse files

[GREEN] menambahkan gender ke model mustahik

parent f12debca
......@@ -19,4 +19,5 @@ class MustahikForm(forms.ModelForm):
'status',
'family_size',
'description',
'gender',
]
......@@ -9,6 +9,10 @@ class Mustahik(models.Model):
MISKIN = ('MISKIN', 'Miskin')
YATIM = ('YATIM', 'Yatim')
class Gender(models.TextChoices):
LAKILAKI = ('L', 'Laki-Laki')
PEREMPUAN = ('P', 'Perempuan')
name = models.CharField(max_length=150)
no_ktp = models.CharField(
max_length=32, unique=True,
......@@ -35,3 +39,4 @@ class Mustahik(models.Model):
)
family_size = models.PositiveSmallIntegerField()
description = models.TextField(blank=True, null=True)
gender = models.CharField(max_length=1, choices=Gender.choices)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment