Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MOOC packages by hacklab
django-courses
Commits
1ee24be6
Commit
1ee24be6
authored
1 year ago
by
Bruno Martin
Browse files
Options
Download
Email Patches
Plain Diff
make course name optional
parent
27fbecdf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
courses/migrations/0051_auto_20230627_0112.py
courses/migrations/0051_auto_20230627_0112.py
+33
-0
courses/videos/models.py
courses/videos/models.py
+2
-0
No files found.
courses/migrations/0051_auto_20230627_0112.py
0 → 100644
View file @
1ee24be6
# Generated by Django 2.2.28 on 2023-06-27 04:12
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'courses'
,
'0050_auto_20230117_2219'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'video'
,
name
=
'name'
,
field
=
models
.
CharField
(
blank
=
True
,
max_length
=
255
,
null
=
True
),
),
migrations
.
AlterField
(
model_name
=
'video'
,
name
=
'name_en'
,
field
=
models
.
CharField
(
blank
=
True
,
max_length
=
255
,
null
=
True
),
),
migrations
.
AlterField
(
model_name
=
'video'
,
name
=
'name_es'
,
field
=
models
.
CharField
(
blank
=
True
,
max_length
=
255
,
null
=
True
),
),
migrations
.
AlterField
(
model_name
=
'video'
,
name
=
'name_pt_br'
,
field
=
models
.
CharField
(
blank
=
True
,
max_length
=
255
,
null
=
True
),
),
]
This diff is collapsed.
Click to expand it.
courses/videos/models.py
View file @
1ee24be6
...
...
@@ -11,6 +11,8 @@ def get_upload_path(instance, filename):
class
Video
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
255
,
null
=
True
,
blank
=
True
,
)
youtube_id
=
models
.
CharField
(
max_length
=
100
,
...
...
This diff is collapsed.
Click to expand it.
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