mirror of
https://github.com/Hopiu/django-fobi.git
synced 2026-05-10 22:03:09 +00:00
Merge branch 'master' of github.com:barseghyanartur/django-fobi
This commit is contained in:
commit
f30b32bbd1
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue