Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sistem Informasi Zakat
Sizakat 5.0 (Refactoring)
Sizakat Backend
Commits
bcfc1ad8
Commit
bcfc1ad8
authored
Jul 16, 2020
by
addffa
Browse files
[GREEN] menambahkan constraint unique pada attribute no_ktp
parent
1c941264
Changes
1
Hide whitespace changes
Inline
Side-by-side
sizakat/apps/mustahik/models.py
View file @
bcfc1ad8
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment