Skip to content

Commit c338929

Browse files
committed
fix: use meta class overrides instead
1 parent f511695 commit c338929

File tree

3 files changed

+4
-20
lines changed

3 files changed

+4
-20
lines changed

successstories/forms.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ class Meta:
2424
labels = {
2525
'name': 'Story name',
2626
}
27+
help_texts = {
28+
"content": "Note: Submissions in Markdown are strongly preferred and can be processed faster.",
29+
}
2730

2831
def clean_name(self):
2932
name = self.cleaned_data.get('name')

successstories/migrations/0013_alter_story_content.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

successstories/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Story(NameSlugModel, ContentManageable):
5353
author = models.CharField(max_length=500, help_text='Author of the content')
5454
author_email = models.EmailField(max_length=100, blank=True, null=True)
5555
pull_quote = models.TextField()
56-
content = MarkupField(default_markup_type=DEFAULT_MARKUP_TYPE, help_text="Note: Submissions in Markdown are strongly preferred and can be processed faster.")
56+
content = MarkupField(default_markup_type=DEFAULT_MARKUP_TYPE)
5757
is_published = models.BooleanField(default=False, db_index=True)
5858
featured = models.BooleanField(default=False, help_text="Set to use story in the supernav")
5959
image = models.ImageField(upload_to='successstories', blank=True, null=True)

0 commit comments

Comments
 (0)