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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
90851fc6
Commit
90851fc6
authored
Aug 31, 2022
by
quido.zientek
Browse files
Options
Downloads
Patches
Plain Diff
[FIX] separate constants in main
parent
f3888ace
Branches
Branches containing commit
No related tags found
3 merge requests
!607
Pirati.cz
,
!604
Feature/pirati cz quidecek
,
!575
Feature/pirati cz
Pipeline
#9615
passed
Aug 31, 2022
Stage: build
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
elections2021/constants.py
+0
-15
0 additions, 15 deletions
elections2021/constants.py
main/constants.py
+14
-0
14 additions, 0 deletions
main/constants.py
main/models.py
+2
-4
2 additions, 4 deletions
main/models.py
with
16 additions
and
19 deletions
elections2021/constants.py
+
0
−
15
View file @
90851fc6
...
...
@@ -125,21 +125,6 @@ REGION_NAME_VARIANT = {code: name2 for code, slug, name, name2 in REGION_DATA}
REGION_SLUGS
=
{
slug
:
code
for
code
,
slug
,
name
,
name2
in
REGION_DATA
}
REGION_OPTIONS
=
[(
slug
,
name
)
for
code
,
slug
,
name
,
name2
in
REGION_DATA
]
MONTH_NAMES
=
[
"
Leden
"
,
"
Únor
"
,
"
Březen
"
,
"
Duben
"
,
"
Květen
"
,
"
Červen
"
,
"
Červenec
"
,
"
Srpen
"
,
"
Září
"
,
"
Říjen
"
,
"
Listopad
"
,
"
Prosinec
"
,
]
PIRATES
=
"
pirati
"
STAN
=
"
stan
"
PARTY_CHOICES
=
((
PIRATES
,
"
Piráti
"
),
(
STAN
,
"
STAN
"
))
...
...
This diff is collapsed.
Click to expand it.
main/constants.py
0 → 100644
+
14
−
0
View file @
90851fc6
MONTH_NAMES
=
[
"
Leden
"
,
"
Únor
"
,
"
Březen
"
,
"
Duben
"
,
"
Květen
"
,
"
Červen
"
,
"
Červenec
"
,
"
Srpen
"
,
"
Září
"
,
"
Říjen
"
,
"
Listopad
"
,
"
Prosinec
"
,
]
This diff is collapsed.
Click to expand it.
main/models.py
+
2
−
4
View file @
90851fc6
...
...
@@ -24,10 +24,7 @@ from wagtail.core.fields import RichTextField, StreamField
from
wagtail.core.models
import
Page
from
wagtailmetadata.models
import
MetadataPageMixin
from
elections2021.constants
import
(
# pozor, import ze sousedního modulu
MONTH_NAMES
,
REGION_CHOICES
,
)
from
elections2021.constants
import
REGION_CHOICES
# pozor, import ze sousedního modulu
from
shared.const
import
RICH_TEXT_DEFAULT_FEATURES
from
shared.forms
import
SubscribeForm
from
shared.models
import
(
# MenuMixin,
...
...
@@ -41,6 +38,7 @@ from tuning import admin_help
from
twitter_utils.models
import
Tweet
from
.
import
blocks
from
.constants
import
MONTH_NAMES
from
.forms
import
JekyllImportForm
from
.menu
import
MenuMixin
...
...
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