mirror of
https://github.com/jazzband/django-authority.git
synced 2026-05-08 15:44:45 +00:00
Django 1.11 fix for AttributeError: 'GenericForeignKeyRawIdWidget' object has no attribute 'rel'
This commit is contained in:
parent
3677b421fe
commit
9848b54c37
1 changed files with 3 additions and 0 deletions
|
|
@ -80,5 +80,8 @@ class GenericForeignKeyRawIdWidget(ForeignKeyRawIdWidget):
|
|||
)
|
||||
return mark_safe(u"".join(output) + content_types)
|
||||
|
||||
def get_context(self, name, value, attrs):
|
||||
return forms.TextInput.get_context(self, name, value, attrs)
|
||||
|
||||
def url_parameters(self):
|
||||
return {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue