diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-12-14 22:04:43 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-12-14 22:04:43 +0100 |
commit | 81be7b888e0f4d7e748cad20e597b028b7861b12 (patch) | |
tree | ee786fcd0f7aa9f276e45f4e9ed712762b378ef7 | |
parent | 6c47b6b3bc23aadc674175f140091f46aa5f3868 (diff) | |
download | Ishtar-81be7b888e0f4d7e748cad20e597b028b7861b12.tar.bz2 Ishtar-81be7b888e0f4d7e748cad20e597b028b7861b12.zip |
Flake8
-rw-r--r-- | archaeological_finds/wizards.py | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/archaeological_finds/wizards.py b/archaeological_finds/wizards.py index c586cd809..1dc6ff348 100644 --- a/archaeological_finds/wizards.py +++ b/archaeological_finds/wizards.py @@ -17,18 +17,15 @@ # See the file COPYING for details. -from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from django.core.files.storage import default_storage -from django.shortcuts import render_to_response -from django.template import RequestContext -from django.utils.safestring import mark_safe from django.utils.translation import ugettext_lazy as _ from ishtar_common.forms import reverse_lazy from ishtar_common.wizards import Wizard, DeletionWizard, SourceWizard import models + class FindWizard(Wizard): file_storage = default_storage model = models.Find @@ -38,7 +35,7 @@ class FindWizard(Wizard): step = self.steps.current if not step: return - if step.endswith('_creation'): # a context record has been selected + if step.endswith('_creation'): # a context record has been selected main_form_key = 'selecrecord-' + self.url_name try: idx = int(self.session_get_value(main_form_key, 'pk')) @@ -60,8 +57,9 @@ class FindWizard(Wizard): current_cr = self.get_current_contextrecord() if not current_cr or self.steps.current.startswith('select-'): return context - context['reminders'] = ((_("Operation"), unicode(current_cr.operation)), - (_(u"Context record"), unicode(current_cr))) + context['reminders'] = ( + (_("Operation"), unicode(current_cr.operation)), + (_(u"Context record"), unicode(current_cr))) return context def get_extra_model(self, dct, form_list): @@ -87,10 +85,8 @@ class FindSourceWizard(SourceWizard): class FindSourceDeletionWizard(DeletionWizard): model = models.FindSource - fields = ['item', 'title', 'source_type', 'authors',] + fields = ['item', 'title', 'source_type', 'authors', ] class TreatmentSourceWizard(SourceWizard): model = models.TreatmentSource - - |