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
Merge requests
!27
add history for AKs
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
add history for AKs
history
into
master
Overview
1
Commits
1
Pipelines
0
Changes
9
Merged
Nadja Geisler
requested to merge
history
into
master
4 years ago
Overview
1
Commits
1
Pipelines
0
Changes
9
Expand
0
0
Merge request reports
Compare
master
version 1
b565d18d
4 years ago
master (base)
and
latest version
latest version
fc84b04a
1 commit,
4 years ago
version 1
b565d18d
1 commit,
4 years ago
9 files
+
146
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
9
Search (e.g. *.vue) (Ctrl+P)
AKModel/migrations/0032_AK_history.py
0 → 100644
+
65
−
0
Options
# Generated by Django 2.2.6 on 2020-05-11 22:27
import
django.db.models.deletion
import
simple_history.models
from
django.conf
import
settings
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
migrations
.
swappable_dependency
(
settings
.
AUTH_USER_MODEL
),
(
'
AKModel
'
,
'
0031_event_ordering
'
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
'
HistoricalAK
'
,
fields
=
[
(
'
id
'
,
models
.
IntegerField
(
auto_created
=
True
,
blank
=
True
,
db_index
=
True
,
verbose_name
=
'
ID
'
)),
(
'
name
'
,
models
.
CharField
(
help_text
=
'
Name of the AK
'
,
max_length
=
256
,
verbose_name
=
'
Name
'
)),
(
'
short_name
'
,
models
.
CharField
(
blank
=
True
,
help_text
=
'
Name displayed in the schedule
'
,
max_length
=
64
,
verbose_name
=
'
Short Name
'
)),
(
'
description
'
,
models
.
TextField
(
blank
=
True
,
help_text
=
'
Description of the AK
'
,
verbose_name
=
'
Description
'
)),
(
'
link
'
,
models
.
URLField
(
blank
=
True
,
help_text
=
'
Link to wiki page
'
,
verbose_name
=
'
Web Link
'
)),
(
'
reso
'
,
models
.
BooleanField
(
default
=
False
,
help_text
=
'
Intends to submit a resolution
'
,
verbose_name
=
'
Resolution Intention
'
)),
(
'
present
'
,
models
.
BooleanField
(
help_text
=
'
Present results of this AK
'
,
null
=
True
,
verbose_name
=
'
Present this AK
'
)),
(
'
notes
'
,
models
.
TextField
(
blank
=
True
,
help_text
=
'
Notes to organizers. These are public. For private notes, please send an e-mail.
'
,
verbose_name
=
'
Organizational Notes
'
)),
(
'
interest
'
,
models
.
IntegerField
(
default
=-
1
,
help_text
=
'
Expected number of people
'
,
verbose_name
=
'
Interest
'
)),
(
'
interest_counter
'
,
models
.
IntegerField
(
default
=
0
,
help_text
=
'
People who have indicated interest online
'
,
verbose_name
=
'
Interest Counter
'
)),
(
'
history_id
'
,
models
.
AutoField
(
primary_key
=
True
,
serialize
=
False
)),
(
'
history_date
'
,
models
.
DateTimeField
()),
(
'
history_change_reason
'
,
models
.
CharField
(
max_length
=
100
,
null
=
True
)),
(
'
history_type
'
,
models
.
CharField
(
choices
=
[(
'
+
'
,
'
Created
'
),
(
'
~
'
,
'
Changed
'
),
(
'
-
'
,
'
Deleted
'
)],
max_length
=
1
)),
(
'
category
'
,
models
.
ForeignKey
(
blank
=
True
,
db_constraint
=
False
,
help_text
=
'
Category of the AK
'
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
DO_NOTHING
,
related_name
=
'
+
'
,
to
=
'
AKModel.AKCategory
'
,
verbose_name
=
'
Category
'
)),
(
'
event
'
,
models
.
ForeignKey
(
blank
=
True
,
db_constraint
=
False
,
help_text
=
'
Associated event
'
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
DO_NOTHING
,
related_name
=
'
+
'
,
to
=
'
AKModel.Event
'
,
verbose_name
=
'
Event
'
)),
(
'
history_user
'
,
models
.
ForeignKey
(
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
SET_NULL
,
related_name
=
'
+
'
,
to
=
settings
.
AUTH_USER_MODEL
)),
(
'
track
'
,
models
.
ForeignKey
(
blank
=
True
,
db_constraint
=
False
,
help_text
=
'
Track the AK belongs to
'
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
DO_NOTHING
,
related_name
=
'
+
'
,
to
=
'
AKModel.AKTrack
'
,
verbose_name
=
'
Track
'
)),
],
options
=
{
'
verbose_name
'
:
'
historical AK
'
,
'
ordering
'
:
(
'
-history_date
'
,
'
-history_id
'
),
'
get_latest_by
'
:
'
history_date
'
,
},
bases
=
(
simple_history
.
models
.
HistoricalChanges
,
models
.
Model
),
),
]
Loading