Commit 9dc49bf7 authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Merge branch 'develop' into 'master'

Develop

See merge request !79
parents 51631d67 465ba680
......@@ -36,7 +36,14 @@ class Class(models.Model):
'certification.CertificateTemplate',
models.SET_NULL,
verbose_name=_('CertificateTemplate'),
related_name='classes',
related_name='classes_certificate',
null=True,
)
receipt_template = models.ForeignKey(
'certification.CertificateTemplate',
models.SET_NULL,
verbose_name=_('CertificateTemplate'),
related_name='classes_receipt',
null=True,
)
......
# Generated by Django 2.2.24 on 2021-08-05 13:35
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('certification', '0008_auto_20210730_1110'),
('courses', '0032_auto_20210802_1418'),
]
operations = [
migrations.AddField(
model_name='class',
name='receipt_template',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='classes_receipt', to='certification.CertificateTemplate', verbose_name='CertificateTemplate'),
),
migrations.AlterField(
model_name='class',
name='certificate_template',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='classes_certificate', to='certification.CertificateTemplate', verbose_name='CertificateTemplate'),
),
]
Markdown is supported
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