ixc / wagtail-instance-selector

A widget for Wagtail's admin that allows you to create and select related items
MIT License
54 stars 17 forks source link

NoReverseMatch issue #3

Closed Redhaus closed 4 years ago

Redhaus commented 4 years ago

Hello sir,

I am having an issue. I had your previous version installed working after I made the django 3 update to my hooks file. Then when I saw you updated the file, I uninstalled the previous version and reinstalled wagtail-instance-selector==1.1.0

Then I reinstalled wagtail-instance-selector==1.2.1

I am running wagtail 2.8 python 3.7.5

Now I am getting the following error do you have any idea why?

Request Method: GET

http://127.0.0.1:8000/admin/events/eventoverview/edit/1/ 3.0.3 NoReverseMatch Reverse for 'wagtail_instance_selector_embed' not found. 'wagtail_instance_selector_embed' is not a valid view function or pattern name. /Users/redbook/.local/share/virtualenvs/wagtail04-U6tFrRhI/lib/python3.7/site-packages/django/urls/resolvers.py in _reverse_with_prefix, line 677 /Users/redbook/.local/share/virtualenvs/wagtail04-U6tFrRhI/bin/python 3.7.5 ['/Users/redbook/PycharmProjects/wagtail04/idealwagtail', '/Users/redbook/.local/share/virtualenvs/wagtail04-U6tFrRhI/lib/python37.zip', '/Users/redbook/.local/share/virtualenvs/wagtail04-U6tFrRhI/lib/python3.7', '/Users/redbook/.local/share/virtualenvs/wagtail04-U6tFrRhI/lib/python3.7/lib-dynload', '/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7', '/Users/redbook/.local/share/virtualenvs/wagtail04-U6tFrRhI/lib/python3.7/site-packages'] Tue, 24 Mar 2020 04:48:19 +0000

Error during template rendering In template /Users/redbook/.local/share/virtualenvs/wagtail04-U6tFrRhI/lib/python3.7/site-packages/wagtail/admin/templates/wagtailadmin/shared/field.html, error at line 7

Reverse for 'wagtail_instance_selector_embed' not found. 'wagtail_instance_selector_embed' is not a valid view function or pattern name.

1 | {% load wagtailadmin_tags %} 2 |

3 | {% if show_label|default_if_none:True %}{{ field.label_tag }}{% endif %} 4 |
5 |
6 | {% block form_field %} 7 | {{ field|render_with_errors }} 8 | {% endblock %} 9 | 10 | {# This span only used on rare occasions by certain types of input #} 11 | 12 |
13 | {% if show_help_text|default_if_none:True and field.help_text %} 14 |

{{ field.help_text }}

15 | {% endif %} 16 |   17 | {% if field|has_unrendered_errors %}

Full Trace

Redhaus commented 4 years ago

Any help you can provide would be much appreciated.

Thanks

Redhaus commented 4 years ago

apologies this issue was due to missing migrations on my part