Fakultas Ilmu Komputer UI

Commit 668a1df5 authored by Ryan Karyadiputera's avatar Ryan Karyadiputera
Browse files


parent 433f1b45
Pipeline #76808 failed with stages
in 1 minute and 11 seconds
......@@ -85,7 +85,7 @@ class Mahasiswa(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE, related_name='mahasiswa')
org_code = models.CharField('organization_code', max_length=11, blank=True)
npm = models.CharField('npm', max_length=10)
npm = models.CharField('npm', max_length=10, blank=True)
faculty = models.CharField('faculty', max_length=128, blank=True)
major = models.CharField('major', max_length=128, blank=True)
program = models.CharField('program', max_length=128, blank=True)
......@@ -93,7 +93,7 @@ class Mahasiswa(models.Model):
supervisor_sekolah = models.ForeignKey(SupervisorSekolah, related_name='mahasiswa', \
to_field='user', on_delete=models.CASCADE, null=True, blank=True)
supervisor_lembaga = models.ForeignKey(SupervisorLembaga, related_name='mahasiswa',\
to_field='user', on_delete=models.CASCADE, null=True, blank=True)
to_field='user', on_delete=models.CASCADE, null=False, blank=True)
class Meta:
verbose_name = 'mahasiswa'
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