Skip to content
Snippets Groups Projects
Commit a3be05fb authored by Dylann Cordel's avatar Dylann Cordel :crossed_swords:
Browse files

Update README.md

parent c169d17e
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ item which is a `News` instance, then a item which is a `Page` instance, then a ...@@ -15,7 +15,7 @@ item which is a `News` instance, then a item which is a `Page` instance, then a
Add `highlighted_content` in `INSTALLED_APPS` and configure models which can be used as "item": Add `highlighted_content` in `INSTALLED_APPS` and configure models which can be used as "item":
``` ```python
# settings.py # settings.py
...@@ -35,7 +35,7 @@ CMS_HIGHLIGHTED_CONTENT_ITEMS_MODELS = ( ...@@ -35,7 +35,7 @@ CMS_HIGHLIGHTED_CONTENT_ITEMS_MODELS = (
In your HighlightedContentItem, you **MUST** define the highlighted_content ForeignKey. In your HighlightedContentItem, you **MUST** define the highlighted_content ForeignKey.
``` ```python
# models.py # models.py
from highlighted_content.models import HighlightedContentPluginBase, HighlightedContentItemBase from highlighted_content.models import HighlightedContentPluginBase, HighlightedContentItemBase
...@@ -52,7 +52,7 @@ Make your migration and apply it. ...@@ -52,7 +52,7 @@ Make your migration and apply it.
### 2. CMS plugin ### 2. CMS plugin
``` ```python
# cms_plugins.py # cms_plugins.py
from highlighted_content.cms_plugins import HighlightedContentPluginBase from highlighted_content.cms_plugins import HighlightedContentPluginBase
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment