The model consists of two classes:
- Categories
- News
The "Categories" model consists of 1 field
- Category name
The "News" model consists of 5 fields:
- Date of publication
- News titles
- News text
- Main category
- Additional categories
The Main category
is linked to categories using a ForeignKey
, and the Additional category
is linked using a ManyToManyField
.
News titles
and Category names
are indexed for quick search.
The admin panel implements 2 classes that describe our models.
But opposed to the category, the news class uses filters by Main category
, Additional categories
and Date of publication
.
In this project I am using the Rich Text Editor
django-tinymce.