Skip to content
Snippets Groups Projects
Commit 17648e90 authored by N. Geisler & B. Hättasch's avatar N. Geisler & B. Hättasch Committed by Nadja Geisler
Browse files

add "last updated" field to AK Slot

parent 49070651
No related branches found
No related tags found
1 merge request!8New features
# Generated by Django 2.2.6 on 2019-10-31 00:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('AKModel', '0025_contact_email'),
]
operations = [
migrations.AddField(
model_name='akslot',
name='updated',
field=models.DateTimeField(auto_now=True, verbose_name='Last update'),
),
]
......@@ -24,7 +24,8 @@ class Event(models.Model):
help_text='Default length in hours that is assumed for AKs in this event.')
contact_email = models.EmailField(verbose_name=_("Contact email address"), blank=True,
help_text=_("An email address that is displayed on every page and can be used for all kinds of questions"))
help_text=_(
"An email address that is displayed on every page and can be used for all kinds of questions"))
class Meta:
verbose_name = _('Event')
......@@ -263,6 +264,8 @@ class AKSlot(models.Model):
event = models.ForeignKey(to=Event, on_delete=models.CASCADE, verbose_name=_('Event'),
help_text=_('Associated event'))
updated = models.DateTimeField(auto_now=True, verbose_name=_("Last update"))
class Meta:
verbose_name = _('AK Slot')
verbose_name_plural = _('AK Slots')
......
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