Fakultas Ilmu Komputer UI

Commit 49263b7d authored by addffa's avatar addffa
Browse files

[GREEN] fix datasource institusi requirement

parent f998b6ae
Pipeline #51749 passed with stage
in 5 minutes and 58 seconds
# 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),
),
]
......@@ -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):
......
......@@ -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,
}
......
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