3 ms·
or just use Django: * Update your BlogPostModel, to add a ManyToMany(CategoryModel) field * Update your .html template with a for loop over blog_post.categori
by sznio 3y ago
or just use Django:
* Update your BlogPostModel, to add a ManyToMany(CategoryModel) field
* Update your .html template with a for loop over blog_post.categories.
* `django-admin makemigrations && django-admin migrate`
Your life can be so simple. All you need to do is to reject Javascript.