Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
rixx committed Sep 13, 2023
1 parent ae5c1b9 commit b8ebfa2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pretalx_pages/migrations/0001_create_page_model.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Generated by Django 3.0.3 on 2020-03-01 21:12

import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import i18nfield.fields
from django.db import migrations, models

import pretalx.common.mixins.models


Expand Down
2 changes: 1 addition & 1 deletion pretalx_pages/templates/pretalx_pages/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h1>{% trans "Pages" %}</h1>
</p>

<a href="{% url "plugins:pretalx_pages:create" event=request.event.slug %}"
class="btn btn-primary btn-lg"><i class="fa fa-plus"></i> {% trans "Create a new page" %}</a>
class="btn btn-primary btn-lg"><i class="fa fa-plus"></i> {% trans "Create a new page" %}</a>
</div>
{% else %}
<p>
Expand Down
5 changes: 4 additions & 1 deletion pretalx_pages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ def get_context_data(self, **kwargs):
tags=ALLOWED_TAGS
| {"img", "p", "br", "s", "sup", "sub", "u", "h3", "h4", "h5", "h6"},
attributes=attributes,
protocols=ALLOWED_PROTOCOLS | {"data", },
protocols=ALLOWED_PROTOCOLS
| {
"data",
},
)
return ctx

0 comments on commit b8ebfa2

Please sign in to comment.