parent
dbfe88610a
commit
70046b5104
14 changed files with 357 additions and 40 deletions
19
ccdb/projects/migrations/0006_set_labels.py
Normal file
19
ccdb/projects/migrations/0006_set_labels.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('projects', '0005_DATA_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='grantreport',
|
||||
name='grant',
|
||||
field=models.ForeignKey(to='projects.Grant', related_name='reports'),
|
||||
),
|
||||
]
|
|
@ -35,7 +35,7 @@ class Grant(models.Model):
|
|||
|
||||
|
||||
class GrantReport(models.Model):
|
||||
grant = models.ForeignKey(Grant)
|
||||
grant = models.ForeignKey(Grant, related_name='reports')
|
||||
title = models.CharField(max_length=200)
|
||||
report_type = models.CharField(max_length=50, blank=True)
|
||||
description = models.CharField(max_length=255, blank=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue