diff options
Diffstat (limited to 'chimere/views.py')
| -rw-r--r-- | chimere/views.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chimere/views.py b/chimere/views.py index 3a59d3a..3150258 100644 --- a/chimere/views.py +++ b/chimere/views.py @@ -253,6 +253,9 @@ def edit(request, area_name="", item_id=None, submited=False): # get the "manualy" declared_fields. Ie: properties declared_fields = form.declared_fields.keys() + declared_fields = PropertyModel.objects.filter(available=True).all() + filtered_properties = PropertyModel.objects.filter(available=True, + subcategories__id__isnull=False).all() response_dct.update({ 'actions':actions, 'action_selected':('contribute', 'edit'), @@ -268,6 +271,7 @@ def edit(request, area_name="", item_id=None, submited=False): init_item.point if init_item else None, area_name=response_dct['area_name']), 'properties':declared_fields, + 'filtered_properties':filtered_properties, 'submited':submited }) # manualy populate the custom widget |
