Commit c4b38e8e authored by Pranav Jerry's avatar Pranav Jerry

added help_text in fields in

Added a field content in the model Story.
I'm working on converting the text in `content`
to html on `` and writing that to some
parent ceeec381
......@@ -4,9 +4,11 @@ from uuid import uuid4
class Story(models.Model):
uuid = models.CharField(max_length=36, primary_key=True, default=uuid4,
title = models.CharField(max_length=50)
language = models.CharField(max_length=7, choices=settings.LANGUAGES)
editable=False, help_text="The unique id of the story")
title = models.CharField(max_length=50, help_text="The title of the story")
language = models.CharField(max_length=7, choices=settings.LANGUAGES,
help_text="The language of the story")
content = models.TextField(help_text="The markdown source of the story")
def __str__(self):
return self.title
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment