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

No Reverse Match with OrderedTabularInline #122

Closed
madEng84 opened this issue Jun 15, 2017 · 3 comments
Closed

No Reverse Match with OrderedTabularInline #122

madEng84 opened this issue Jun 15, 2017 · 3 comments

Comments

@madEng84
Copy link

madEng84 commented Jun 15, 2017

With Django 1.11.2 i have an error like this:

Django Version: 1.11.2
Python Version: 2.7
Exception Type: NoReverseMatch
Exception Value:
Reverse for '{app_label}_{model_name}_order_up_inline' not found.

p.s. Obviously app_label and model_name are substituted from real attrs

If i use django_extensions show_urls command i cannot see them in project urls, but i can see the ones of the OrderedModelAdmin i used in the whole admin site

@madEng84
Copy link
Author

Hi, any news on this issue?

@shuckc
Copy link
Member

shuckc commented Aug 18, 2017

That's the first reverse URL required for OrderedTabularInline.

Most likely you need to add the get_urls() aggregation code to your Admin subclass mentioned here: https://github.com/bfirsh/django-ordered-model/blob/master/README.md#admin-integration

@shuckc shuckc closed this as completed Aug 30, 2017
@madEng84
Copy link
Author

madEng84 commented Aug 31, 2017

Perfect
Thank you.

I think, perhaps, that the reload of the page in the change form (especially if i'm doing some modifications on the instance) is not the best approach.
A JS approach could be better, but the editable=False on the ModelField is a big limitation.
Do you think am I wrong?
@shuckc

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

No branches or pull requests

2 participants