-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* NTI-work + Fehrm additions + flake8 enf * Make manage.py executable * Update src/involvement/locale/sv/LC_MESSAGES/django.po Co-authored-by: Daniel Fehrm <daniel@fehrm.se> * fix translations * empty migration * bring up to date * fix migration conflic in involvment + add copy of footer info + quickfix of serverbreaking issue in branding/models.py * access to manage.py --------- Co-authored-by: Daniel Fehrm <daniel@fehrm.se> Co-authored-by: Marmingen <melker.marminge@telia.com>
- Loading branch information
1 parent
888422d
commit c52c1a6
Showing
16 changed files
with
360 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
<h2>{{ value.title }}</h2> | ||
{% if value.subtitle %}<p>{{ value.subtitle }}</p>{% endif %} | ||
<h2 style="text-align: {{ value.title_alignment }};"> | ||
{{ value.title }} | ||
</h2> | ||
{% if value.subtitle %} | ||
<p {% if value.subtitle_alignment %} | ||
style="text-align: {{ value.subtitle_alignment }};" | ||
{% endif %}> | ||
{{ value.subtitle }} | ||
</p> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Generated by Django 3.2.3 on 2023-02-15 22:38 | ||
|
||
from django.db import migrations | ||
import wagtail.core.blocks | ||
import wagtail.core.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('branding', '0003_footersettings'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='footersettings', | ||
old_name='footer', | ||
new_name='footer_en', | ||
), | ||
migrations.AddField( | ||
model_name='footersettings', | ||
name='footer_sv', | ||
field=wagtail.core.fields.StreamField([('column', wagtail.core.blocks.StructBlock([('size', wagtail.core.blocks.IntegerBlock(max_value=12, min_value=1)), ('content', wagtail.core.blocks.RichTextBlock())]))], blank=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generated by Django 3.2.17 on 2023-03-01 18:25 | ||
|
||
from django.db import migrations | ||
from django.db.models import F | ||
from utils.data_migrations import stream_field_filter_map | ||
|
||
# def del_footer_sv() | ||
|
||
|
||
def copy_field(apps, schema): | ||
MyModel = apps.get_model('branding', 'footersettings') | ||
MyModel.objects.all().update(footer_sv=F('footer_en')) | ||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('branding', '0004_footer_sv'), | ||
] | ||
|
||
operations = [migrations.RunPython(copy_field), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.