I have written a plugin for django-cms, in which it has its own model with a placeholderfield. When I add a placeholder admin to the model administrator, I'm getting this admin on the site:
Exception type: TemplateSyntaxError exception value: Error while rendering type: & lt; Lambda & gt; () Absolutely takes 1 argument 2 given) Exceptional location: & lt; Blablapath & gt; Presenting in /python2.6/site-packages/cms/forms/widgets.py, line 199 I'm looking for solution only with some problems with Django-cms example Which will run some paths in urls.py without any hesitation, so I think this may be a problem with the URL, especially when I do some magic in my URL. The question is, what terms should be there to be legitimate for the DJENGO-CMS URL? any idea? Any solutions? Anyone had this problem before?
This problem occurs when you enter placeholder adminfield Classes do not classify. For example:
from cms.admin.placeholderadmin import placeholder import from placeholder cms.models.fieldsplaceholderfild class MyModel (models.Model): name = model. CharField (max_length = 100) sidebar = placeholder field ('sidebar') class MyAdmin (placeholder): "" "Put your general administrator content here. = ((None, 'field': ('name',),}), ('sidebar', '' square '': ('plug-holder', 'plug-holder-nopage'), 'field': ( 'Sidebar',)}),) Admin.site.register (MyModel, MyAdmin)
Comments
Post a Comment