Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AE UTBM
Sith
Commits
22e277d4
Verified
Commit
22e277d4
authored
Dec 21, 2017
by
Nicolas Ballet
Browse files
merged migrations
parent
903f07ec
Pipeline
#1442
passed with stage
in 6 minutes and 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
com/migrations/0004_auto_20171
023_0929
.py
→
com/migrations/0004_auto_20171
221_1614
.py
View file @
22e277d4
...
@@ -23,6 +23,7 @@ class Migration(migrations.Migration):
...
@@ -23,6 +23,7 @@ class Migration(migrations.Migration):
(
'file'
,
models
.
ImageField
(
verbose_name
=
'file'
,
upload_to
=
'com/posters'
)),
(
'file'
,
models
.
ImageField
(
verbose_name
=
'file'
,
upload_to
=
'com/posters'
)),
(
'date_begin'
,
models
.
DateTimeField
(
default
=
django
.
utils
.
timezone
.
now
)),
(
'date_begin'
,
models
.
DateTimeField
(
default
=
django
.
utils
.
timezone
.
now
)),
(
'date_end'
,
models
.
DateTimeField
(
blank
=
True
,
null
=
True
)),
(
'date_end'
,
models
.
DateTimeField
(
blank
=
True
,
null
=
True
)),
(
'display_time'
,
models
.
IntegerField
(
verbose_name
=
'display time'
,
default
=
30
)),
(
'is_moderated'
,
models
.
BooleanField
(
verbose_name
=
'is moderated'
,
default
=
False
)),
(
'is_moderated'
,
models
.
BooleanField
(
verbose_name
=
'is moderated'
,
default
=
False
)),
(
'club'
,
models
.
ForeignKey
(
verbose_name
=
'club'
,
related_name
=
'posters'
,
to
=
'club.Club'
)),
(
'club'
,
models
.
ForeignKey
(
verbose_name
=
'club'
,
related_name
=
'posters'
,
to
=
'club.Club'
)),
(
'moderator'
,
models
.
ForeignKey
(
verbose_name
=
'moderator'
,
blank
=
True
,
null
=
True
,
related_name
=
'moderated_posters'
,
to
=
settings
.
AUTH_USER_MODEL
)),
(
'moderator'
,
models
.
ForeignKey
(
verbose_name
=
'moderator'
,
blank
=
True
,
null
=
True
,
related_name
=
'moderated_posters'
,
to
=
settings
.
AUTH_USER_MODEL
)),
...
...
com/migrations/0005_poster_display_time.py
deleted
100644 → 0
View file @
903f07ec
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'com'
,
'0004_auto_20171023_0929'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'poster'
,
name
=
'display_time'
,
field
=
models
.
IntegerField
(
verbose_name
=
'display time'
,
default
=
30
),
),
]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment