Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Websites UFRPE
Wagtail Videos
Commits
8a67f903
Commit
8a67f903
authored
Feb 09, 2021
by
Seb
Browse files
Remove unique constraint
parent
120ad6b6
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
tests/app/migrations/0001_initial.py
View file @
8a67f903
This diff is collapsed.
Click to expand it.
wagtailvideos/migrations/0012_remove_unique_constraint.py
0 → 100644
View file @
8a67f903
This diff is collapsed.
Click to expand it.
wagtailvideos/models.py
View file @
8a67f903
...
@@ -365,7 +365,7 @@ class AbstractVideoTrack(Orderable):
...
@@ -365,7 +365,7 @@ class AbstractVideoTrack(Orderable):
language
=
models
.
CharField
(
language
=
models
.
CharField
(
max_length
=
50
,
max_length
=
50
,
choices
=
[(
v
,
k
)
for
k
,
v
in
bcp47
.
languages
.
items
()],
choices
=
[(
v
,
k
)
for
k
,
v
in
bcp47
.
languages
.
items
()],
default
=
'en'
,
blank
=
True
,
help_text
=
'Required if type is "Subtitle"'
,
unique
=
True
)
default
=
'en'
,
blank
=
True
,
help_text
=
'Required if type is "Subtitle"'
)
def
track_tag
(
self
):
def
track_tag
(
self
):
attrs
=
{
attrs
=
{
...
...
Write
Preview
Markdown
is supported
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