correct handling when adding new cluster numbers
This commit is contained in:
parent
6912222a53
commit
e29b7f503d
|
@ -111,7 +111,5 @@ class ExampleClusterEdit(DataChgClickMessage):
|
||||||
class ExampleClusterAdd(DataChgClickMessage):
|
class ExampleClusterAdd(DataChgClickMessage):
|
||||||
def update_model(self, model):
|
def update_model(self, model):
|
||||||
example = self.get_arg(0, Example)
|
example = self.get_arg(0, Example)
|
||||||
|
example.set_cluster(ExampleClusters.first_empty_cluster())
|
||||||
max_example_cluster_num = ExampleClusters.first_empty_cluster()
|
|
||||||
example.set_cluster(max_example_cluster_num + 1)
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user