-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
I didn't see it in documentation, so I thought maybe this feature does not exist.
Is there a way to parse bbcode to a list from a string? Considering a custom tag as a:
text = "Lorem ipsum dolor sit amet, [a]consectetur[/a] adipiscing elit, sed do eiusmod [a]tempor[/a] incididunt ut labore [a]et[/a] dolore magna aliqua."
parser("a", "text")
["consectetur","tempor","et"]
Why do I need it? (Or why would someone else need it?)
In a basic blog, where titles are (for an unknown reason) implemented as a different model (not a field) called as Title.
I want to get value of a tag and filter a QuerySet based on that value. Considering the former example:
Title.objects.filter(label="consectetur")
Is it possible yet?
Thanks in advance.
Metadata
Metadata
Assignees
Labels
No labels