Skip to content
Snippets Groups Projects
Commit 7cf95124 authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Add drupal_id to determinations.

parent f3832b27
No related branches found
No related tags found
No related merge requests found
# Generated by Django 2.0.2 on 2018-08-29 17:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('determinations', '0004_change_labels'),
]
operations = [
migrations.AddField(
model_name='determination',
name='drupal_id',
field=models.IntegerField(blank=True, editable=False, null=True),
),
]
......@@ -52,6 +52,9 @@ class Determination(models.Model):
created_at = models.DateTimeField(verbose_name=_('Creation time'), auto_now_add=True)
updated_at = models.DateTimeField(verbose_name=_('Update time'), auto_now=True)
# Meta: used for migration purposes only
drupal_id = models.IntegerField(null=True, blank=True, editable=False)
@property
def stripped_message(self):
return bleach.clean(self.message, tags=[], strip=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment