question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FullCalendar: django.core.urlresolvers.NoReverseMatch: Reverse for 'Scheduler_sessionoccurrencemodifier_change'

See original GitHub issue

django.core.urlresolvers.NoReverseMatch: Reverse for 'Scheduler_sessionoccurrencemodifier_change' with arguments '(12345,)' and keyword arguments '{}' not found. 0 pattern(s) tried: []

Occurs at lines 16 and 24 of schedule/templates/fullcalendar_script.html

`function getEventViewURL(event){
    if (event.existed){
        if("{{ request.get_full_path }}".indexOf("/admin") != 0){
            var view_url = "{% url 'occurrence' 12345 6789 %}".replace(/12345/, event.event_id).replace(/6789/, event.id);
        }
        else{
            var view_url = "{% url 'admin:Scheduler_sessionoccurrencemodifier_change' 12345 %}".replace(/12345/, event.id)
        }
    }
    else {
        if("{{ request.get_full_path }}".indexOf("/admin") != 0){
            var view_url = "{% url 'event' 12345 %}".replace(/12345/, event.event_id);
        }
        else{
            var view_url = "{% url 'admin:Scheduler_sessionscheduler_change' 12345 %}".replace(/12345/, event.event_id)
        }
    }
    return view_url;
}`

Looks like missing admin code.

@nwaxiomatic

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
llazzarocommented, Dec 20, 2016

I hope to have a fix for 0.8.3 soon. I will give priority to this issue.

0reactions
ghostcommented, Jan 23, 2017

@oriregev you got such error as Occurrence model is not registered in admin section

Read more comments on GitHub >

github_iconTop Results From Across the Web

django.core.urlresolver.reverse - NoReverseMatch
I have a problem with url resolution in a view: # URLS.PY from django.conf.urls.defaults import url, include, patterns from ...
Read more >
NoReverseMatch Exception #122 - llazzaro/django-scheduler
I have the following exception when I try to view the calender. Request Method: GET Request URL: http://0.0.0.0:8000/admin/r/11/3/ Django ...
Read more >
Source code for django.core.urlresolvers
Source code for django.core.urlresolvers. """ This module converts requested URLs to callback view functions. RegexURLResolver is the main class here.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found