Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
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
TO
Maják
Merge requests
!1201
Release career template test
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Release career template test
feat/fix-octo-import
into
test
Overview
0
Commits
6
Pipelines
1
Changes
2
Merged
Alexa Valentová
requested to merge
feat/fix-octo-import
into
test
4 months ago
Overview
0
Commits
6
Pipelines
1
Changes
2
Expand
0
0
Merge request reports
Viewing commit
eedddccb
Prev
Next
Show latest version
2 files
+
32
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
eedddccb
prepare for form
· eedddccb
Alexa Valentová
authored
5 months ago
main/forms.py
+
5
−
0
Options
import
os
import
tempfile
from
django
import
forms
from
shared.forms
import
ArticlesPageForm
as
SharedArticlesPageForm
from
shared.forms
import
JekyllImportForm
as
SharedJekyllImportForm
@@ -7,6 +8,10 @@ from shared.forms import JekyllImportForm as SharedJekyllImportForm
from
.tasks
import
import_jekyll_articles
class
CareerSubmissionForm
(
forms
.
Form
):
pass
class
JekyllImportForm
(
SharedJekyllImportForm
):
def
handle_import
(
self
):
lock_file_name
=
os
.
path
.
join
(
Loading