diff options
Diffstat (limited to 'archaeological_operations/forms.py')
| -rw-r--r-- | archaeological_operations/forms.py | 14 | 
1 files changed, 14 insertions, 0 deletions
| diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index 11055ccfb..4473d7858 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -228,6 +228,13 @@ class OperationSelect(TableSelect):                                  widget=widgets.JQueryDate)      parcel = ParcelField(label=_("Parcel (section/number)"))      end_date = forms.NullBooleanField(label=_(u"Is open?")) +    history_creator = forms.IntegerField( +            label=_(u"Created by"), +            widget=widgets.JQueryAutoComplete( +                reverse_lazy('autocomplete-person', +                args=['0', 'user']), +                associated_model=Person), +            validators=[valid_id(Person)])      def __init__(self, *args, **kwargs):          super(OperationSelect, self).__init__(*args, **kwargs) @@ -648,6 +655,13 @@ class AdministrativeActOpeSelect(TableSelect):                                    max_length=15)      act_type = forms.ChoiceField(label=_("Act type"), choices=[])      operation__towns = get_town_field() +    history_creator = forms.IntegerField( +            label=_(u"Created by"), +            widget=widgets.JQueryAutoComplete( +                reverse_lazy('autocomplete-person', +                args=['0', 'user']), +                associated_model=Person), +            validators=[valid_id(Person)])      def __init__(self, *args, **kwargs):          super(AdministrativeActOpeSelect, self).__init__(*args, **kwargs) | 
