alfortville: add a last_update_timestamp to avis
This commit is contained in:
parent
81b92243c8
commit
d551c14224
|
@ -0,0 +1,19 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('alfortville', '0005_auto_20151016_1523'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='inbox',
|
||||
name='last_update_timestamp',
|
||||
field=models.DateTimeField(auto_now=True, null=True),
|
||||
),
|
||||
]
|
|
@ -38,6 +38,7 @@ class Inbox(models.Model):
|
|||
source = generic.GenericForeignKey('source_type', 'source_pk')
|
||||
done = models.BooleanField(default=False)
|
||||
comments = models.TextField(blank=True, null=True, verbose_name=_('Comments'))
|
||||
last_update_timestamp = models.DateTimeField(auto_now=True, null=True)
|
||||
|
||||
def role_name(self):
|
||||
return Role.objects.get(uuid=self.role_slug).name
|
||||
|
|
Loading…
Reference in New Issue