Guest User

Untitled

a guest
Dec 14th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. class Topic(FAQBase):
  2. """A topic that a Question can belong to."""
  3.  
  4. title = models.CharField(_(u'title'), max_length=255)
  5. slug = models.SlugField(_(u'slug'), unique=True, help_text=_(u'Used in \
  6. the URL for the topic. Must be unique.'))
  7. description = models.TextField(_(u'description'), blank=True,
  8. help_text=_(u'A short description of this topic.'))
  9. sites = models.ManyToManyField(Site, verbose_name=_(u'sites'),
  10. related_name='faq_topics')
  11. template_name = models.CharField(_(u'template name'), blank=True,
  12. max_length=255, help_text=_(u'Optional template to use for this \
  13. topic\'s detail page, e.g., "faq/topics/special.html". If not \
  14. given the standard template will be used.'))
Add Comment
Please, Sign In to add comment