Skip to content

Commit

Permalink
Fixed admin namespace issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrockhoeft committed Aug 10, 2017
1 parent 516ac79 commit e0617c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion locking/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def locking_media(self, obj=None):
info = (opts.app_label, getattr(opts, 'model_name', None) or getattr(opts, 'module_name', None))
pk = getattr(obj, 'pk', None) or 0
return forms.Media(js=(
reverse('admin:%s_%s_lock_js' % info, args=[pk]),))
reverse('admin:%s_%s_lock_js' % info, args=[pk], current_app=self.admin_site.name),))

def get_urls(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
README = os.path.join(os.path.dirname(__file__), 'README.md')
long_description = open(README).read()
setup(name='django-locking',
version='2.2.19.dev6',
version='2.2.19.dev8',
description=("Prevents users from doing concurrent editing in Django. Works out of the box in the admin interface, or you can integrate it with your own apps using a public API."),
long_description=long_description,
classifiers=['Development Status :: 4 - Beta',
Expand Down

0 comments on commit e0617c2

Please sign in to comment.