Commit eab22c6a authored by Bruno Martin's avatar Bruno Martin
Browse files

add receipt_template to class model

parent 1d4ffc65
......@@ -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-03 06:08
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('certification', '0008_auto_20210730_1110'),
('courses', '0031_auto_20210730_1115'),
]
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