Skip to content
Snippets Groups Projects
Commit 4dcebb7e authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Adding a model Contribution to have a pointer on a contribution and know its...

Adding a model Contribution to have a pointer on a contribution and know its origin. Adding link to its related DetailView
parent 53b9503d
No related branches found
No related tags found
No related merge requests found
Pipeline #10189 passed
# Generated by Django 2.0.13 on 2019-03-12 14:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('ippidb', '0019_auto_20190312_1023'),
]
operations = [
migrations.CreateModel(
name='Contribution',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('bibliography', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='ippidb.Bibliography')),
('contributor', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)),
('ppi', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='ippidb.Ppi')),
],
),
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment