Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
djangoldp-polls
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Applications
etuc
djangoldp-polls
Commits
d1df3116
Commit
d1df3116
authored
4 years ago
by
Maxime
Browse files
Options
Downloads
Patches
Plain Diff
clean initial migratio file
parent
d5e129d0
No related branches found
No related tags found
Loading
Pipeline
#6870
failed
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
djangoldp_polls/migrations/0001_initial.py
+82
-0
82 additions, 0 deletions
djangoldp_polls/migrations/0001_initial.py
with
82 additions
and
0 deletions
djangoldp_polls/migrations/0001_initial.py
0 → 100644
+
82
−
0
View file @
d1df3116
# -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-08-06 02:37
from
__future__
import
unicode_literals
from
django.conf
import
settings
from
django.db
import
migrations
,
models
import
django.db.models.deletion
import
djangoldp.fields
class
Migration
(
migrations
.
Migration
):
initial
=
True
dependencies
=
[
migrations
.
swappable_dependency
(
settings
.
AUTH_USER_MODEL
),
(
'
djangoldp_conversation
'
,
'
0006_auto_20200617_1309
'
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
'
Poll
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'
ID
'
)),
(
'
urlid
'
,
djangoldp
.
fields
.
LDPUrlField
(
blank
=
True
,
null
=
True
,
unique
=
True
)),
(
'
is_backlink
'
,
models
.
BooleanField
(
default
=
False
,
help_text
=
'
(DEPRECIATED) set automatically to indicate the Model is a backlink
'
)),
(
'
allow_create_backlink
'
,
models
.
BooleanField
(
default
=
True
,
help_text
=
'
set to False to disable backlink creation after Model save
'
)),
(
'
created_at
'
,
models
.
DateTimeField
(
auto_now_add
=
True
)),
(
'
title
'
,
models
.
CharField
(
max_length
=
250
,
verbose_name
=
'
Title
'
)),
(
'
image
'
,
models
.
URLField
(
blank
=
True
,
null
=
True
,
verbose_name
=
"
Illustration de l
'
évènement
"
)),
(
'
hostingOrganisation
'
,
models
.
CharField
(
max_length
=
250
,
verbose_name
=
'
Name of the hosting organisation
'
)),
(
'
startDate
'
,
models
.
DateField
(
blank
=
True
,
null
=
True
,
verbose_name
=
'
Date de début
'
)),
(
'
endDate
'
,
models
.
DateField
(
verbose_name
=
'
Date de fin
'
)),
(
'
shortDescription
'
,
models
.
CharField
(
max_length
=
250
,
verbose_name
=
'
Short description
'
)),
(
'
longDescription
'
,
models
.
TextField
(
verbose_name
=
'
Long description
'
)),
(
'
author
'
,
models
.
ForeignKey
(
blank
=
True
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
createdVotes
'
,
to
=
settings
.
AUTH_USER_MODEL
)),
(
'
debate
'
,
models
.
ManyToManyField
(
blank
=
True
,
related_name
=
'
debates
'
,
to
=
'
djangoldp_conversation.Conversation
'
)),
],
),
migrations
.
CreateModel
(
name
=
'
PollOption
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'
ID
'
)),
(
'
urlid
'
,
djangoldp
.
fields
.
LDPUrlField
(
blank
=
True
,
null
=
True
,
unique
=
True
)),
(
'
is_backlink
'
,
models
.
BooleanField
(
default
=
False
,
help_text
=
'
(DEPRECIATED) set automatically to indicate the Model is a backlink
'
)),
(
'
allow_create_backlink
'
,
models
.
BooleanField
(
default
=
True
,
help_text
=
'
set to False to disable backlink creation after Model save
'
)),
(
'
name
'
,
models
.
CharField
(
max_length
=
250
,
verbose_name
=
'
Options available for a vote
'
)),
],
),
migrations
.
CreateModel
(
name
=
'
Tag
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'
ID
'
)),
(
'
urlid
'
,
djangoldp
.
fields
.
LDPUrlField
(
blank
=
True
,
null
=
True
,
unique
=
True
)),
(
'
is_backlink
'
,
models
.
BooleanField
(
default
=
False
,
help_text
=
'
(DEPRECIATED) set automatically to indicate the Model is a backlink
'
)),
(
'
allow_create_backlink
'
,
models
.
BooleanField
(
default
=
True
,
help_text
=
'
set to False to disable backlink creation after Model save
'
)),
(
'
name
'
,
models
.
CharField
(
max_length
=
250
,
verbose_name
=
'
Name
'
)),
],
),
migrations
.
CreateModel
(
name
=
'
Vote
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'
ID
'
)),
(
'
urlid
'
,
djangoldp
.
fields
.
LDPUrlField
(
blank
=
True
,
null
=
True
,
unique
=
True
)),
(
'
is_backlink
'
,
models
.
BooleanField
(
default
=
False
,
help_text
=
'
(DEPRECIATED) set automatically to indicate the Model is a backlink
'
)),
(
'
allow_create_backlink
'
,
models
.
BooleanField
(
default
=
True
,
help_text
=
'
set to False to disable backlink creation after Model save
'
)),
(
'
chosenOption
'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
userVote
'
,
to
=
'
djangoldp_polls.PollOption
'
)),
(
'
relatedPoll
'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
votes
'
,
to
=
'
djangoldp_polls.Poll
'
)),
(
'
user
'
,
models
.
ForeignKey
(
blank
=
True
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
user
'
,
to
=
settings
.
AUTH_USER_MODEL
)),
],
),
migrations
.
AddField
(
model_name
=
'
poll
'
,
name
=
'
pollOptions
'
,
field
=
models
.
ManyToManyField
(
blank
=
True
,
related_name
=
'
relatedPollOptions
'
,
to
=
'
djangoldp_polls.PollOption
'
),
),
migrations
.
AddField
(
model_name
=
'
poll
'
,
name
=
'
tags
'
,
field
=
models
.
ManyToManyField
(
blank
=
True
,
related_name
=
'
tags
'
,
to
=
'
djangoldp_polls.Tag
'
),
),
]
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