Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
C
cp_video_dokku
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexandr Dzehil
cp_video_dokku
Commits
3d63ed0e
Commit
3d63ed0e
authored
Mar 06, 2023
by
Ilya Simonov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix generate first video slug
parent
7eebea97
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
64 additions
and
2 deletions
+64
-2
.gitignore
.gitignore
+63
-0
models.cpython-39.pyc
apps/core/__pycache__/models.cpython-39.pyc
+0
-0
models.py
apps/core/models.py
+1
-2
No files found.
.gitignore
0 → 100644
View file @
3d63ed0e
redis-stable.tar.gz
redis-stable/
dump.rdb
# OS & Editors folders
.DS_Store
.cache
.directory
.project
.settings
.tmproj
.ropeproject
.pydevproject
nbproject
Thumbs.db
.idea
*.orig
.c9
.~c9_invoke*
*~
.redis-stable
# Python
__pycache__
*.pyc
# Development
local.py
logs/
*.log
*.old
*.pid
celerybeat-schedule
# Collected static & Dev media
/media
/static
# DBs
/*.db
/*.sqlite3
*.backup
*.dump
# Djando
*.egg-info
*.pot
*.py[co]
.tox/
MANIFEST
dist/
docs/_build/
docs/locale/
node_modules/
tests/coverage_html/
tests/.coverage
build/
tests/report/
/venv/
/requirements/local.txt
apps/core/__pycache__/models.cpython-39.pyc
View file @
3d63ed0e
No preview for this file type
apps/core/models.py
View file @
3d63ed0e
...
...
@@ -93,8 +93,7 @@ class Video(BaseModel):
return
self
.
title
def
save
(
self
,
*
args
,
**
kwargs
):
print
(
'save'
)
if
not
self
.
id
:
if
not
self
.
slug
:
self
.
slug
=
slugify
(
self
.
title
)
super
()
.
save
(
*
args
,
**
kwargs
)
...
...
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