|
@@ -143,7 +143,7 @@ def admin_create(request):
|
143
|
143
|
for in_put, in_value in request.form.items():
|
144
|
144
|
# The classname is handled by the datasource, we are not allowed to modify it
|
145
|
145
|
# both are hidden in the form, to identify the object here
|
146
|
|
- if in_put != 'classname' and in_value != '':
|
|
146
|
+ if in_put != 'classname' and in_value != '':
|
147
|
147
|
dhl = target_leo.data_handler(in_put[12:])
|
148
|
148
|
if dhl.is_singlereference():
|
149
|
149
|
in_value=int(in_value)
|
|
@@ -158,8 +158,8 @@ def admin_create(request):
|
158
|
158
|
in_value=l
|
159
|
159
|
|
160
|
160
|
fields[in_put[12:]] = in_value
|
161
|
|
- if in_value == '':
|
162
|
|
- fields[in_put[12:]] = None
|
|
161
|
+ if in_value == '':
|
|
162
|
+ fields[in_put[12:]] = None
|
163
|
163
|
|
164
|
164
|
# Insertion in the database of the values corresponding to a new object
|
165
|
165
|
new_uid = target_leo.insert(fields)
|