Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AKPlanning
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KIF
AKPlanning
Commits
17648e90
Commit
17648e90
authored
5 years ago
by
N. Geisler & B. Hättasch
Committed by
Nadja Geisler
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add "last updated" field to AK Slot
parent
49070651
No related branches found
Branches containing commit
No related tags found
1 merge request
!8
New features
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
AKModel/migrations/0026_akslot_updated.py
+17
-0
17 additions, 0 deletions
AKModel/migrations/0026_akslot_updated.py
AKModel/models.py
+4
-1
4 additions, 1 deletion
AKModel/models.py
with
21 additions
and
1 deletion
AKModel/migrations/0026_akslot_updated.py
0 → 100644
+
17
−
0
View file @
17648e90
# 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
'
),
),
]
This diff is collapsed.
Click to expand it.
AKModel/models.py
+
4
−
1
View file @
17648e90
...
...
@@ -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
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment