Fakultas Ilmu Komputer UI

Commit bcfc1ad8 authored by addffa's avatar addffa
Browse files

[GREEN] menambahkan constraint unique pada attribute no_ktp

parent 1c941264
......@@ -11,7 +11,7 @@ class Mustahik(models.Model):
YATIM = ('YATIM', 'Yatim')
name = models.CharField(max_length=32)
no_ktp = models.CharField(max_length=32)
no_ktp = models.CharField(max_length=32, unique=True)
phone = models.CharField(max_length=32, blank=True)
address = models.TextField()
province = models.CharField(max_length=32)
......
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