django-dajaxice
django-dajaxice copied to clipboard
Improper calls order in some cases
Found weird issue with sequence of calls recently. Symptoms: dajaxice.core.js is successfully generated but contains no methods that should appear due to registering python methods using @dajaxice_register()
on my configuration page is generated by Django, sent to client, then request from client for dajaxice.core.js arrived and served by DajaxiceFinder using DajaxiceStorage.dajaxice_core_js
still no calls to @dajaxice_register()!!! so no JS functions generated in js
and only then, sic! all @dajaxice_register() decorators are called but no sense in it.
Trying to understand the reason but have no idea why such behavior appeared.