What django model field can I use to pass a list of string to the database? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What django model field can I use to pass a list of string to the database?

I have a tag field on the template, and the requirement is to pass a list of string to the database, like what sololearn is doing with the relevant tag field for each question.So I though that there would be a field that can help with that

12th Aug 2020, 5:10 PM
prime omondi
prime omondi - avatar
1 Answer
0
This might not be what you are looking for but there is a third party Django plugin called django-taggit. Pip install django-taggit. The source code: https://github.com/jazzband/django-taggit I have used it on a small app to add tags to blog posts.
29th Aug 2020, 4:54 AM
Jason Sikes
Jason Sikes - avatar