Skip to content

Commit

Permalink
Wrong arg name for reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Geoffroy committed Apr 24, 2014
1 parent 8f5afa1 commit 10972f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django_crucrudile/models/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def _get_url(obj, *args, **kwargs):
"""
if instance_view or view_class.instance_view:
kwargs['kwargs'] = kwargs.get('kwargs', {})
kwargs['kwargs']['id'] = obj.id
kwargs['kwargs']['pk'] = obj.id

return reverse(
obj.get_url_name(view_class, prefix=True),
*args,
Expand Down

0 comments on commit 10972f6

Please sign in to comment.