Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix migration issues as a result of help_text parameter #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion blogs/forms.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from django import forms
from django.core.validators import RegexValidator, ValidationError
from django.template.defaultfilters import slugify
from django.urls import reverse_lazy
from django.utils.text import format_lazy

from .helpers import is_protected, root, check_records
from .models import Blog, Post, Emailer
Expand Down Expand Up @@ -204,7 +206,8 @@ def __init__(self, user, *args, **kwargs):
)

show_in_feed = forms.BooleanField(
help_text=f"Make post discoverable at <a href='http://{root()}/discover/' target='_blank'>{root()}/discover</a>",
help_text=format_lazy("Make post discoverable at <a href='{0}' target='_blank'>{0}</a>",
reverse_lazy("discover")),
required=False,
initial=True)

Expand Down