diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-08-24 18:23:28 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-08-24 18:23:28 +0200 | 
| commit | 4404bafa193a37517f43932de4dafcb763b9f709 (patch) | |
| tree | 2667d79b42cc993d0668317e3100a237fa33ce4d /archaeological_files/forms.py | |
| parent | 01dacc332490e462fd7a1fa817b293a7398d2307 (diff) | |
| parent | ae8a81de6b6786518027ccd8f09e825d107be5e7 (diff) | |
| download | Ishtar-4404bafa193a37517f43932de4dafcb763b9f709.tar.bz2 Ishtar-4404bafa193a37517f43932de4dafcb763b9f709.zip | |
Merge branch 'master' into v0.9
Diffstat (limited to 'archaeological_files/forms.py')
| -rw-r--r-- | archaeological_files/forms.py | 10 | 
1 files changed, 8 insertions, 2 deletions
| diff --git a/archaeological_files/forms.py b/archaeological_files/forms.py index 41381e0b8..369ffdaf0 100644 --- a/archaeological_files/forms.py +++ b/archaeological_files/forms.py @@ -1,6 +1,6 @@  #!/usr/bin/env python  # -*- coding: utf-8 -*- -# Copyright (C) 2010-2015  Étienne Loks  <etienne.loks_AT_peacefrogsDOTnet> +# Copyright (C) 2010-2016  É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 @@ -37,7 +37,7 @@ from ishtar_common.forms import FinalForm, get_now, reverse_lazy, TableSelect  from ishtar_common.forms_common import get_town_field  from archaeological_operations.forms import AdministrativeActOpeForm, \      AdministrativeActOpeFormSelection, \ -    ParcelField, SLICING, HEAD_SCIENTIST, SRA_AGENT +    ParcelField, SLICING, HEAD_SCIENTIST, SRA_AGENT, AdministrativeActModifForm  from ishtar_common import widgets  GENERAL_CONTRACTOR, created = PersonType.objects.get_or_create( @@ -538,3 +538,9 @@ class AdministrativeActFileForm(AdministrativeActOpeForm):              dct={'intented_to': 'F'})          self.fields['act_type'].help_text = ActType.get_help(              dct={'intented_to': 'F'}) + + +class AdministrativeActFileModifForm(AdministrativeActModifForm, +                                     AdministrativeActFileForm): +    pk = forms.IntegerField(required=False, widget=forms.HiddenInput) +    index = forms.IntegerField(label=_("Index"), required=False) | 
