Skip to content

Commit

Permalink
Merge pull request #32 from LegoStormtroopr/updater
Browse files Browse the repository at this point in the history
fixes #31
  • Loading branch information
LegoStormtroopr committed Nov 21, 2017
2 parents 40f27ff + 9bf6721 commit a7dd05d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aristotle_dse/views.py
Expand Up @@ -66,9 +66,9 @@ def addClustersToDSS(request, dss_id):
if form.is_valid():
cardinality = form.cleaned_data['cardinality']
maxOccurs = form.cleaned_data['maximum_occurances']
for dss in form.cleaned_data['clusters']:
for child_dss in form.cleaned_data['clusters']:
dss.addCluster(
child=dss,
child=child_dss,
maximum_occurances=maxOccurs,
cardinality=cardinality
)
Expand Down Expand Up @@ -277,7 +277,7 @@ def editInclusionOrder(request, dss_id, inc_type):
if inc.dss != item:
raise PermissionDenied
inc.order = form['ORDER'].value()
inc.maximum_occurances = form['maximum_occurances'].value()
# inc.maximum_occurances = form['maximum_occurances'].value()
# value = form.save(commit=False) #Don't immediately save, we need to attach the value domain
# value.dss = item
inc.save()
Expand Down

0 comments on commit a7dd05d

Please sign in to comment.