Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin UI misrepresents how tags will be parsed #783

Open
kmcelwee opened this issue Jan 4, 2022 · 0 comments
Open

Admin UI misrepresents how tags will be parsed #783

kmcelwee opened this issue Jan 4, 2022 · 0 comments

Comments

@kmcelwee
Copy link

kmcelwee commented Jan 4, 2022

The TaggableManager view through the admin UI suggests that multi-word tags will be parsed as one tag instead of split. A user can click "Add software engineering..." as a tag, and the UI will display that as one tag, but only after saving will it be split into "software" and "engineering". The raw text is "software engineering" and taggit documents that this will be parsed into "software" and "engineering" but there's no way for the user to see if they've correctly wrapped the tag in quotes.

Is there a way to ensure that the UI better mirrors _parse_tags? Or perhaps automatically appends a comma or wraps in quotes when "add [tag]" is selected from the dropdown?

A current workaround is documented on SO so that the parser better matches the UI:

def custom_tag_string(tag_string)
    return [t.strip(' "') for t in tag_string.split(",") if t.strip(' "')]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants