diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-01-30 19:19:38 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-01-30 19:19:38 +0100 |
| commit | bdd55f876e2abc40eb76ad791046149acbe95e3f (patch) | |
| tree | ed0a68d93749184ad943bc17b650767cfe82a2e7 /ishtar/furnitures/forms.py | |
| parent | ff12291c25bc3dcaf056a872ef3bd0389da2ef75 (diff) | |
| download | Ishtar-bdd55f876e2abc40eb76ad791046149acbe95e3f.tar.bz2 Ishtar-bdd55f876e2abc40eb76ad791046149acbe95e3f.zip | |
SRA Agent can be incharge of an operation (closes #145)
Diffstat (limited to 'ishtar/furnitures/forms.py')
| -rw-r--r-- | ishtar/furnitures/forms.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ishtar/furnitures/forms.py b/ishtar/furnitures/forms.py index 1e9642072..a45c564af 100644 --- a/ishtar/furnitures/forms.py +++ b/ishtar/furnitures/forms.py @@ -1146,7 +1146,9 @@ class OperationFormGeneral(forms.Form): currents = {'associated_file':models.File} in_charge = forms.IntegerField(label=_("Person in charge of the operation"), widget=widgets.JQueryAutoComplete(reverse_lazy('autocomplete-person', - args=[models.PersonType.objects.get(txt_idx='head_scientist').pk]), + args=["_".join( + [unicode(models.PersonType.objects.get(txt_idx='head_scientist').pk), + unicode(models.PersonType.objects.get(txt_idx='sra_agent').pk)])]), associated_model=models.Person), validators=[models.valid_id(models.Person)]) associated_file = forms.IntegerField(label=_("Archaelogical file"), |
