save last change in changeset and lock changesets before changing stuff
This commit is contained in:
parent
f0758b9a5c
commit
a49019f6d8
11 changed files with 152 additions and 94 deletions
30
src/c3nav/editor/migrations/0010_auto_20170704_1431.py
Normal file
30
src/c3nav/editor/migrations/0010_auto_20170704_1431.py
Normal file
|
@ -0,0 +1,30 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.2 on 2017-07-04 14:31
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.utils.timezone
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('editor', '0009_auto_20170701_1218'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='changedobject',
|
||||
name='last_update',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='changedobject',
|
||||
name='stale',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='changeset',
|
||||
name='last_change',
|
||||
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now, verbose_name='last change'),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue