You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ajaximage\fields.py", line 34, in contribute_to_class
super(AjaxImageField, self).contribute_to_class(cls, name, virtual_only)
TypeError: Error when calling the metaclass bases
contribute_to_class() takes exactly 3 arguments (4 given)
then I remove virtual_only from 34 line and i get now error when I try save model:
"ajaximage\widgets.py in render, line 57"
"Error during template rendering
In template C:\Python27\lib\site-packages\django\contrib\admin\templates\admin\includes\fieldset.html, error at line 19"
If anyone have the same problem, please help me.. a try:
Replace (ajaximage\widgets.py in render, line 57):
file_url = value.url if value else ''
with:
file_url = value.url if value else str('')
I DO IT!!! But when i save model without name I get error about file_url = value.url if value else ''
I remove virtual_only=False and virtual_only from contribute_to_class in fields.py. THe results:
ajaximage\fields.py line 33- 35:
Hi when i syncdb i get error:
ajaximage\fields.py", line 34, in contribute_to_class
super(AjaxImageField, self).contribute_to_class(cls, name, virtual_only)
TypeError: Error when calling the metaclass bases
contribute_to_class() takes exactly 3 arguments (4 given)
then I remove virtual_only from 34 line and i get now error when I try save model:
"ajaximage\widgets.py in render, line 57"
"Error during template rendering
In template C:\Python27\lib\site-packages\django\contrib\admin\templates\admin\includes\fieldset.html, error at line 19"
If anyone have the same problem, please help me.. a try:
Replace (ajaximage\widgets.py in render, line 57):
file_url = value.url if value else ''
with:
file_url = value.url if value else str('')
I DO IT!!! But when i save model without name I get error about file_url = value.url if value else ''
I remove virtual_only=False and virtual_only from contribute_to_class in fields.py. THe results:
ajaximage\fields.py line 33- 35:
def contribute_to_class(self, cls, name):
super(AjaxImageField, self).contribute_to_class(cls, name)
setattr(cls, self.name, self.descriptor_class(self))
I try :
#12
The text was updated successfully, but these errors were encountered: