diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-04-18 12:57:23 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-04-18 12:57:23 +0200 |
commit | f4701f5fc4730ddf7479ef0b8700ce7ba3e201d4 (patch) | |
tree | 4af3b380aa45b29dc55e7c7a6696006752ea6bb0 /ishtar_common/forms.py | |
parent | 750fbe5e314aef2ca2bf8816da45f986b2f43c5c (diff) | |
download | Ishtar-f4701f5fc4730ddf7479ef0b8700ce7ba3e201d4.tar.bz2 Ishtar-f4701f5fc4730ddf7479ef0b8700ce7ba3e201d4.zip |
Django 1.8: HttpResponse mimetype -> content_type
Diffstat (limited to 'ishtar_common/forms.py')
-rw-r--r-- | ishtar_common/forms.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py index ecae18c5e..00f39e625 100644 --- a/ishtar_common/forms.py +++ b/ishtar_common/forms.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Copyright (C) 2010-2016 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet> +# Copyright (C) 2010-2017 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet> # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -159,7 +159,7 @@ class FormSet(BaseFormSet): class TableSelect(forms.Form): def __init__(self, *args, **kwargs): super(TableSelect, self).__init__(*args, **kwargs) - key = self.fields.keyOrder[0] + key = self.fields.keys()[0] self.fields[key].widget.attrs['autofocus'] = 'autofocus' def get_input_ids(self): |