diff options
| -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 - - | 
