Merge branch 'master' of github.com:barseghyanartur/django-fobi

This commit is contained in:
Artur Barseghyan 2016-08-30 23:04:55 +02:00
commit f30b32bbd1

View file

@ -474,7 +474,7 @@ def add_form_element_entry(request,
if save_object:
# Handling the position
position = 1
records = FormElementEntry._default_manager \
records = FormElementEntry.objects.filter(form_entry=form_entry) \
.aggregate(models.Max('position'))
if records:
try: