Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Resint
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Resint
Merge requests
!16
Resolve "Provide infrastructure for live documents"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Provide infrastructure for live documents"
3-provide-infrastructure-for-live-documents
into
master
Overview
8
Commits
13
Pipelines
7
Changes
2
All threads resolved!
Hide all comments
Merged
Jonathan Weth
requested to merge
3-provide-infrastructure-for-live-documents
into
master
3 years ago
Overview
8
Commits
13
Pipelines
7
Changes
2
All threads resolved!
Hide all comments
Expand
Closes
#3 (closed)
Edited
3 years ago
by
Jonathan Weth
0
0
Merge request reports
Viewing commit
1b20eb62
Prev
Next
Show latest version
2 files
+
75
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
Verified
1b20eb62
Add model for live documents
· 1b20eb62
Jonathan Weth
authored
3 years ago
aleksis/apps/resint/migrations/0006_livedocument.py
0 → 100644
+
30
−
0
Options
# Generated by Django 3.2.5 on 2021-08-03 18:02
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'
contenttypes
'
,
'
0002_remove_content_type_name
'
),
(
'
resint
'
,
'
0005_fix_permissions
'
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
'
LiveDocument
'
,
fields
=
[
(
'
id
'
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'
ID
'
)),
(
'
slug
'
,
models
.
SlugField
(
help_text
=
'
This will be used for the name of the current PDF file.
'
,
verbose_name
=
'
Slug
'
)),
(
'
name
'
,
models
.
CharField
(
max_length
=
255
,
verbose_name
=
'
Name
'
)),
(
'
last_update
'
,
models
.
DateTimeField
(
blank
=
True
,
null
=
True
,
verbose_name
=
'
Date and time of the last update
'
)),
(
'
current_file
'
,
models
.
FileField
(
blank
=
True
,
null
=
True
,
upload_to
=
'
chronos/plan_pdfs/
'
,
verbose_name
=
'
Current file
'
)),
(
'
polymorphic_ctype
'
,
models
.
ForeignKey
(
editable
=
False
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
polymorphic_resint.livedocument_set+
'
,
to
=
'
contenttypes.contenttype
'
)),
],
options
=
{
'
verbose_name
'
:
'
Live document
'
,
'
verbose_name_plural
'
:
'
Live documents
'
,
},
),
]
Loading