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
9df170d6
Commit
9df170d6
authored
Jun 21, 2024
by
Alexa Valentová
Browse files
Options
Downloads
Patches
Plain Diff
fix newsletter, newsletter blocks
parent
74726f4c
No related branches found
No related tags found
2 merge requests
!1047
Uniweb redesign
,
!1045
Uniweb redesign, minor district redesign fixes
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
district/models.py
+4
-0
4 additions, 0 deletions
district/models.py
shared/models/main.py
+3
-4
3 additions, 4 deletions
shared/models/main.py
with
7 additions
and
4 deletions
district/models.py
+
4
−
0
View file @
9df170d6
...
...
@@ -6,9 +6,11 @@ from django.contrib import messages
from
django.core.cache
import
cache
from
django.core.exceptions
import
ValidationError
from
django.db
import
models
from
django.conf
import
settings
from
django.http
import
HttpResponseRedirect
from
modelcluster.contrib.taggit
import
ClusterTaggableManager
from
modelcluster.fields
import
ParentalKey
from
wagtail.contrib.routable_page.models
import
RoutablePageMixin
from
taggit.models
import
TaggedItemBase
from
wagtail.admin.panels
import
(
FieldPanel
,
...
...
@@ -25,6 +27,8 @@ from wagtailmetadata.models import MetadataPageMixin
from
calendar_utils.models
import
CalendarMixin
from
maps_utils.blocks
import
MapPointBlock
from
shared.forms
import
SubscribeForm
from
wagtail.contrib.routable_page.models
import
route
from
maps_utils.const
import
(
DEFAULT_MAP_STYLE
,
MAP_STYLES
,
...
...
...
...
This diff is collapsed.
Click to expand it.
shared/models/main.py
+
3
−
4
View file @
9df170d6
...
...
@@ -30,7 +30,7 @@ from wagtail.blocks import PageChooserBlock, RichTextBlock
from
wagtail.contrib.routable_page.models
import
RoutablePageMixin
,
route
from
wagtail.documents.models
import
Document
from
wagtail.fields
import
RichTextField
,
StreamField
from
wagtail.models
import
Page
from
wagtail.models
import
Page
,
Site
from
wagtail.search
import
index
from
wagtailmetadata.models
import
MetadataPageMixin
...
...
@@ -1170,10 +1170,9 @@ class MainHomePageMixin(
form
.
cleaned_data
[
"
email
"
],
(
self
.
newsletter_list_id
if
hasattr
(
self
,
"
newsletter_list_id
"
)
and
self
.
newsletter_list_id
if
hasattr
(
self
,
"
newsletter_list_id
"
)
and
self
.
newsletter_list_id
else
settings
.
PIRATICZ_NEWSLETTER_CID
)
,
)
)
messages
.
success
(
...
...
...
...
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
sign in
to comment