project field in HonoraryCertificate class blank=True
This commit is contained in:
parent
422094a240
commit
cdc8b01d2f
2 changed files with 21 additions and 2 deletions
19
input/migrations/0026_auto_20201026_1214.py
Normal file
19
input/migrations/0026_auto_20201026_1214.py
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# Generated by Django 3.1.1 on 2020-10-26 12:14
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('input', '0025_auto_20201026_1048'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='honorarycertificate',
|
||||||
|
name='project',
|
||||||
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='input.project'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -66,7 +66,7 @@ class HonoraryCertificate(Intern):
|
||||||
''' this class is also used for accreditations '''
|
''' this class is also used for accreditations '''
|
||||||
|
|
||||||
# request_url = models.CharField(max_length=2000)
|
# request_url = models.CharField(max_length=2000)
|
||||||
project = models.ForeignKey(Project, null = True, on_delete = models.SET_NULL)
|
project = models.ForeignKey(Project, null=True, blank=True, on_delete=models.SET_NULL)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return "Certificate for " + self.realname
|
return "Certificate for " + self.realname
|
||||||
|
|
Loading…
Reference in a new issue