Skip to content

Commit

Permalink
django-braces compat
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie committed Sep 10, 2013
1 parent 79ef604 commit da3d4ba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions vanilla/model_views.py
Expand Up @@ -202,13 +202,11 @@ def render_to_response(self, context):

# Compat

@property
def slug_url_kwarg(self):
return self.lookup_url_kwarg or self.lookup_field

def get_form_kwargs(self):
return {}

slug_url_kwarg = 'slug'


## The concrete model views

Expand Down

0 comments on commit da3d4ba

Please sign in to comment.