general: add comments field to qualification
This commit is contained in:
parent
6733f396cb
commit
6f50851eb3
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('qualif', '0002_association_triaged'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='association',
|
||||
name='comments',
|
||||
field=models.TextField(verbose_name='Comments', blank=True),
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
|
@ -19,6 +19,7 @@ from django.contrib.contenttypes import generic
|
|||
from django.db import models
|
||||
from django.db.models.signals import post_save
|
||||
from django.dispatch import receiver
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from welco.utils import get_wcs_formdef_details, push_wcs_formdata
|
||||
|
||||
|
@ -40,6 +41,7 @@ class Association(models.Model):
|
|||
source_pk = models.PositiveIntegerField()
|
||||
source = generic.GenericForeignKey('source_type', 'source_pk')
|
||||
triaged = models.BooleanField(default=False)
|
||||
comments = models.TextField(blank=True, verbose_name=_('Comments'))
|
||||
|
||||
formdefs = models.ManyToManyField(FormdefReference)
|
||||
formdatas = models.ManyToManyField(FormdataReference)
|
||||
|
|
Loading…
Reference in New Issue