I'm working with a custom plugin using Django-CMS 3.0.13:
class PromoPlugin(CMSPluginBase): . . . def get_urls(self): print 'here' # <-- NEVER CALLED return super(CMSPluginBase, self).get_urls()
and trying to override
get_urls() but my override is never called.
CMSPluginBase inherits from
ModelAdmin (reference)... what am I overlooking?
I added a url pattern exactly matching the pattern that was being stepped on to my
PromoPlugin class, but the pattern is probably registered too late to override the
edit_plugin pattern. So, it looks like I'll be tweaking django-genericadmin's URLs.
I'm marking this answer as accepted since it's the correct way to augment a Plugin's URL patterns.