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
49263b7d
Commit
49263b7d
authored
Aug 16, 2020
by
addffa
Browse files
[GREEN] fix datasource institusi requirement
parent
f998b6ae
Pipeline
#51749
passed with stage
in 5 minutes and 58 seconds
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
sizakat/mustahik/migrations/0002_auto_20200816_1347.py
0 → 100644
View file @
49263b7d
# Generated by Django 3.0.7 on 2020-08-16 13:47
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'mustahik'
,
'0001_initial'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'datasourceinstitusi'
,
name
=
'address'
,
field
=
models
.
CharField
(
blank
=
True
,
max_length
=
255
,
null
=
True
),
),
migrations
.
AlterField
(
model_name
=
'datasourceinstitusi'
,
name
=
'pic_position'
,
field
=
models
.
CharField
(
blank
=
True
,
max_length
=
50
,
null
=
True
),
),
]
sizakat/mustahik/models.py
View file @
49263b7d
...
...
@@ -105,11 +105,12 @@ class DataSourceInstitusi(DataSourceDetail):
rw
=
models
.
CharField
(
max_length
=
3
,
validators
=
[
validate_numeric_character
]
)
address
=
models
.
CharField
(
max_length
=
255
)
address
=
models
.
CharField
(
max_length
=
255
,
blank
=
True
,
null
=
True
)
data_source
=
models
.
OneToOneField
(
'DataSource'
,
on_delete
=
models
.
CASCADE
,
limit_choices_to
=
{
'category'
:
DataSource
.
Category
.
INSTITUSI
}
)
pic_position
=
models
.
CharField
(
max_length
=
50
,
blank
=
True
,
null
=
True
)
class
DataSourcePekerja
(
DataSourceDetail
):
...
...
sizakat/mustahik/tests.py
View file @
49263b7d
...
...
@@ -804,7 +804,6 @@ class MustahikGraphQLTestCase(GraphQLTestCase):
"picKtp"
:
pic_ktp
,
"picName"
:
new_pic_name
,
"picPhone"
:
"123456789012"
,
"picPosition"
:
"Head"
,
"name"
:
"Institusi Bandung"
,
"province"
:
"Jawa Barat"
,
"regency"
:
"Kota"
,
...
...
@@ -812,7 +811,6 @@ class MustahikGraphQLTestCase(GraphQLTestCase):
"village"
:
"Desa"
,
"rt"
:
"001"
,
"rw"
:
"001"
,
"address"
:
"Jalan suatu desa no 1"
,
"dataSource"
:
data_source_institusi
.
pk
,
"id"
:
source_institusi
.
pk
,
}
...
...
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