emencia / django-blog-lotus

A weblog application with Django.
https://django-blog-lotus.readthedocs.io/
MIT License
6 stars 1 forks source link

Add tags #42

Closed sveetch closed 1 year ago

sveetch commented 1 year ago

Is your feature request related to a problem? Please describe. Article only have categories to organize thematics.

Describe the solution you'd like It is very common for weblog to have both categories and tags.

Also tags can be used for custom structure which need to find some objects with a criteria than is not the only one object criteria (opposed to article can have only one category).

Tags have been putted away during Lotus conception because django libraries did not looked nice or properly maintained, also tags works with complex queryset that will not be simple to include within lotus querysets.

At first, we need to review django tags libraries to find a proper one.

Describe alternatives you've considered Living without tags is not critical but it's something that will definitively be asked many times.

sveetch commented 1 year ago

https://github.com/jazzband/django-taggit semble bien maintenu par jazzband, à review dans la pratique avec le code de lotus sur les queryset et voir si c'est viable

sveetch commented 1 year ago

django-taggit is currently implemented in 0.5.1 release yet to come.

Then it would be a nice feature to use django-autocomplete-light (there is a full sample for django-taggit in documentation) to the tags input in admin instead of the current basic text input.

sveetch commented 1 year ago

DAL have been properly implemented for tags in article admin, we just included a temporary patch see #46

Tags feature will be shipped with the 0.5.1 release yet to come.