Hi Ian,
On Friday, November 21, 2014 6:16:14 PM UTC-5, ia...@me.com wrote:
-- You may want to try opening an issue on django-consurrency showing the error you're getting.
https://github.com/saxix/django-concurrency/issues
Thanks,
Collin
On Friday, November 21, 2014 6:16:14 PM UTC-5, ia...@me.com wrote:
Hey everyone,One last try. I've given up on django-locking, and am now trying django-concurrency because it's more modern and more likely to work on Django 1.6.8's admin interface.The documentation is very basic and doesn't actually give any examples, so I'm not sure if I've missed something, but I'm getting this exception when I modify my ConfigurationAdmin class to inherit from ConcurrentModelAdmin as the documentation discusses.
class ConfigurationAdmin(ConcurrentM
odelAdmin ):
form = forms.ConfigurationForm
change_list_template = 'admin/configuration/change_list.html'
...
Internal Server Error: /test/common/configuration/
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/ , line 137, in get_responsehandlers/base.py"
response = response.render()
File "/usr/local/lib/python2.7/dist-packages/django/template/ , line 105, in renderresponse.py"
self.content = self.rendered_content
File "/usr/local/lib/python2.7/dist-packages/django/template/ , line 82, in rendered_contentresponse.py"
content = template.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/ , line 140, in renderbase.py"
return self._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/test/ , line 85, in instrumented_test_renderutils.py"
return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/ , line 840, in renderbase.py"
bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/ , line 78, in render_nodedebug.py"
return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/ , line 123, in renderloader_tags.py"
return compiled_parent._render(context )
File "/usr/local/lib/python2.7/dist-packages/django/test/ , line 85, in instrumented_test_renderutils.py"
return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/ , line 840, in renderbase.py"
bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/ , line 78, in render_nodedebug.py"
return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/ , line 123, in renderloader_tags.py"
return compiled_parent._render(context )
File "/usr/local/lib/python2.7/dist-packages/django/test/ , line 85, in instrumented_test_renderutils.py"
return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/ , line 840, in renderbase.py"
bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/ , line 78, in render_nodedebug.py"
return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/ , line 123, in renderloader_tags.py"
return compiled_parent._render(context )
File "/usr/local/lib/python2.7/dist-packages/django/test/ , line 85, in instrumented_test_renderutils.py"
return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/ , line 840, in renderbase.py"
bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/ , line 78, in render_nodedebug.py"
return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/ , line 62, in renderloader_tags.py"
result = block.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/ , line 840, in renderbase.py"
bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/ , line 78, in render_nodedebug.py"
return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/ , line 62, in renderloader_tags.py"
result = block.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/ , line 840, in renderbase.py"
bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/ , line 78, in render_nodedebug.py"
return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/ , line 1196, in renderbase.py"
_dict = func(*resolved_args, **resolved_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/ , line 288, in result_listadmin/templatetags/admin_list. py"
'results': list(results(cl))}
File "/usr/local/lib/python2.7/dist-packages/django/contrib/ , line 266, in resultsadmin/templatetags/admin_list. py"
yield ResultList(None, items_for_result(cl, res, None))
File "/usr/local/lib/python2.7/dist-packages/django/contrib/ , line 258, in __init__admin/templatetags/admin_list. py"
super(ResultList, self).__init__(*items)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/ , line 185, in items_for_resultadmin/templatetags/admin_list. py"
f, attr, value = lookup_field(field_name, result, cl.model_admin)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/ , line 254, in lookup_fieldadmin/util.py"
value = attr(obj)
File "/usr/local/lib/python2.7/dist-packages/concurrency/ , line 37, in action_checkboxadmin.py"
get_revision_of_object(obj))))
File "/usr/local/lib/python2.7/dist-packages/concurrency/api. , line 23, in get_revision_of_objectpy"
return getattr(obj, get_version_fieldname(obj))
File "/usr/local/lib/python2.7/dist-packages/concurrency/ , line 22, in get_version_fieldnamecore.py"
return obj._concurrencymeta._field.attname AttributeError: 'Configuration' object has no attribute '_concurrencymeta'
[21/Nov/2014 20:29:51] "GET /test/common/configuration/ HTTP/1.1" 500 368613I also changed
{{ obj.pk }}
to{{ obj|identity }}
indelete_selected_
as directed in the documentation.confirmation.html Does anyone know how to set this project up? Any help at all would be greatly appreciated.
Thanks!
Ian
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/389af4f1-9333-4963-8845-71212fb6b1c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment