Browse Source

Correction encoooore

Driky 9 years ago
parent
commit
48f286cf30
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      EditorialModel/components.py

+ 3
- 0
EditorialModel/components.py View File

@@ -196,6 +196,7 @@ class EmComponent(object):
196 196
                         c.close()
197 197
 
198 198
                         self.rank = new_rank
199
+                        self.save()
199 200
                     else:
200 201
                         logger.error("Bad argument")
201 202
                         raise ValueError('new_rank to big, new_rank - 1 doesn\'t exist. new_rank = '+str((new_rank)))
@@ -218,6 +219,7 @@ class EmComponent(object):
218 219
                         c.close()
219 220
 
220 221
                         self.rank += new_rank
222
+                        self.save()
221 223
                     else:
222 224
                         logger.error("Bad argument")
223 225
                         raise ValueError('Excepted a positive int not a null. new_rank = '+str((new_rank)))
@@ -240,6 +242,7 @@ class EmComponent(object):
240 242
                         c.close()
241 243
 
242 244
                         self.rank -= new_rank
245
+                        self.save()
243 246
                     else:
244 247
                         logger.error("Bad argument")
245 248
                         raise ValueError('Excepted a positive int not a null. new_rank = '+str((new_rank)))

Loading…
Cancel
Save