diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-05-23 12:58:38 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-12 08:49:06 +0200 |
commit | 743b514bb132752ef87a21e759d35988ffd25229 (patch) | |
tree | 1e9650dcdfb9359e6c1a70031f7705d18700374d /archaeological_finds/forms.py | |
parent | a1ac66c283e12aed6264fb16f99a6daa2f1d5b88 (diff) | |
download | Ishtar-743b514bb132752ef87a21e759d35988ffd25229.tar.bz2 Ishtar-743b514bb132752ef87a21e759d35988ffd25229.zip |
Wizards - JSON fields: inlines for custom form in admin pages (refs #4089)
Diffstat (limited to 'archaeological_finds/forms.py')
-rw-r--r-- | archaeological_finds/forms.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py index 44d883b0f..8cb2fd0aa 100644 --- a/archaeological_finds/forms.py +++ b/archaeological_finds/forms.py @@ -43,7 +43,7 @@ from ishtar_common.forms import FormSet, FloatField, \ ManageOldType, FieldType, IshtarForm, FormHeader from ishtar_common.forms_common import get_town_field, \ - SourceSelect, CustomForm, BaseImageForm, BaseImageFormset + SourceSelect, CustomForm, BaseImageForm, BaseImageFormset, SourceForm from ishtar_common.utils import convert_coordinates_to_point from ishtar_common import widgets from bootstrap_datepicker.widgets import DatePicker @@ -63,7 +63,8 @@ from archaeological_finds.forms_treatments import TreatmentSelect, \ AdministrativeActTreatmentFileModifForm, SourceTreatmentFormSelection, \ SourceTreatmentFileFormSelection, TreatmentSourceFormSelection, \ TreatmentFileSourceFormSelection, DashboardForm as DashboardTreatmentForm, \ - DashboardTreatmentFileForm, TreatmentImagesFormset + DashboardTreatmentFileForm, TreatmentImagesFormset, \ + TreatmentFileSourceForm, TreatmentSourceForm __all__ = [ 'TreatmentSelect', 'TreatmentFormSelection', 'BaseTreatmentForm', @@ -78,7 +79,8 @@ __all__ = [ 'AdministrativeActTreatmentFileModifForm', 'SourceTreatmentFormSelection', 'SourceTreatmentFileFormSelection', 'TreatmentSourceFormSelection', 'TreatmentFileSourceFormSelection', 'DashboardTreatmentForm', - 'DashboardTreatmentFileForm', + 'DashboardTreatmentFileForm', 'TreatmentSourceForm', + 'TreatmentFileSourceForm', 'RecordFormSelection', 'FindForm', 'DateForm', 'DatingFormSet', 'PreservationForm', 'ImagesFormset', 'FindSelect', 'FindFormSelection', 'FindFormSelectionWarehouseModule', @@ -89,7 +91,7 @@ __all__ = [ 'FindDeletionForm', 'UpstreamFindFormSelection', 'SourceFindFormSelection', 'FindSourceSelect', 'FindSourceFormSelection', 'NewFindBasketForm', 'SelectFindBasketForm', 'DeleteFindBasketForm', 'FindBasketAddItemForm', - 'TreatmentImagesFormset' + 'TreatmentImagesFormset', 'FindSourceForm' ] logger = logging.getLogger(__name__) @@ -864,3 +866,7 @@ class FindBasketAddItemForm(forms.Form): raise PermissionDenied basket.items.add(item) return basket + + +class FindSourceForm(SourceForm): + form_slug = "findsource-general" |