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

hotfix: fix 500 error of "taggit_autosuggest-list" #254

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Nov 28, 2023

Overview / Changes

Use re_path, not url, since Django 4.

the error that this fixes
django.urls.exceptions.NoReverseMatch: Reverse for 'taggit_autosuggest-list' not found. 'taggit_autosuggest-list' is not a valid view function or pattern name.

Related

Testing

Try to edit a blog article on ECEP site with this fix deployed.

UI

before after
before after

```
django.urls.exceptions.NoReverseMatch: Reverse for 'taggit_autosuggest-list' not found. 'taggit_autosuggest-list' is not a valid view function or pattern name.
```

The problem is caused by using url, but Django 4 app should use re_path.
wesleyboar added a commit to TACC/Core-CMS that referenced this pull request Nov 28, 2023
@wesleyboar wesleyboar marked this pull request as ready for review November 28, 2023 21:34
@wesleyboar wesleyboar merged commit b388e4b into main Nov 28, 2023
1 check passed
@wesleyboar wesleyboar deleted the hotfix/ecep-taggit_autosuggest-list-error branch November 28, 2023 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant