How to add RichTextField to models.Model in mezzanine?

I need to allow public users to add articles using RichTextEditor

the mezzanine, similar to how admin pages allow RichTextFields

. Can it be used RichTextField

for pages without an administrator?

+3


source to share


1 answer


You can use it on the interface. RichText is an abstract model that you just inherit from.

Example:

class Article(RichText):
    ... your article fields go here ...

      



Now your article model will have a "content" field inherited from RichText and a set of its own fields.

I hope this helps.

+2


source







All Articles