Skip to content

Commit

Permalink
Use remote_field attribute instead of rel
Browse files Browse the repository at this point in the history
  • Loading branch information
Fantomas42 committed Mar 16, 2016
1 parent 09e7a1a commit 82f0ec1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zinnia/admin/forms.py
Expand Up @@ -27,7 +27,7 @@ def __init__(self, *args, **kwargs):
super(CategoryAdminForm, self).__init__(*args, **kwargs)
self.fields['parent'].widget = RelatedFieldWidgetWrapper(
self.fields['parent'].widget,
Category.parent.field.rel,
Category.parent.field.remote_field,
self.admin_site)

def clean_parent(self):
Expand Down Expand Up @@ -62,7 +62,7 @@ def __init__(self, *args, **kwargs):
super(EntryAdminForm, self).__init__(*args, **kwargs)
self.fields['categories'].widget = RelatedFieldWidgetWrapper(
self.fields['categories'].widget,
Entry.categories.field.rel,
Entry.categories.field.remote_field,
self.admin_site)

class Meta:
Expand Down

0 comments on commit 82f0ec1

Please sign in to comment.