Friday, November 21, 2014

django-locking

Hi everyone,

I'm posting new message because I have a different question. Has anyone had any luck using django-locking (https://github.com/RobCombs/django-locking) with a modern version of Django's admin interface? 

I've got it mostly working with my project. Basically Django is set up to add and remove fields from "Configuration"s. We have our own database object called "Configuration", with a number of fields that the admin interface edits. You can create more than one Configuration, and edit existing ones. (This is what we're trying to add locking to.)

Right now, when we go in to edit a Configuration, there's a 404 error in the console when it tries to access 
/admin/ajax/test/common/configuration/is_locked/?_=1416587837817.


It looks like it for some reason is not checking the lock on a specific Configuration. I think it should be doing this: 
/admin/ajax/test/common/configuration/1/is_locked/?_=1416587837817.


So I went to my browser, and tried accessing /admin/ajax/test/common/configuration/1/is_locked/?_=1416587837817. This gives a 404,
saying configuration object with primary key u'1/is_locked' does not exist.

So I think there's two issues here:
1. It is not checking the lock status for a specific Configuration. (not adding the /1/ )
2. Even if it does, it is getting an error when it tries to look for is_locked in the database?

Does anyone know how to fix either of these issues?
I'm on Django 1.6.8, and using the latest version of django-locking from the GitHub page.

Any help would be greatly appreciated. Thank you!

--
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/4b8665c7-c4da-443d-80a4-7a389f500367%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment