Commits

Stefan Scherfke committed e0ff154

Fixed a bug with Model.save()

Comments (0)

Files changed (1)

             return self.name
         return u'–' * self.parent_count + u' ' + self.name
 
-    def save(self, force_insert=False, force_update=False,
-            saved_by_parent=False):
+    def save(self, *args, **kwargs):
         """
         Create path and then save the category. If the path has been updated,
         update any child categories to reflect the new path.
         old_path = self.path
         self.path = self._create_path()
         self.form_display_name = self._create_form_display_name()
-        super(Category, self).save(force_insert=force_insert,
-                force_update=force_update)
+        super(Category, self).save(*args, **kwargs)
 
         if self.path != old_path:
             for child in self.subcategories.all():
     def day(self):
         return self.pub_date.strftime('%d')
 
-    def save(self, force_insert=False, force_update=False,
-            saved_by_parent=False):
+    def save(self, *args, **kwargs):
         """Process the markup in `body` and store the html in `body_html`."""
         self.body_html = markup.restructuredtext(self.body)
-        super(Post, self).save(force_insert=force_insert,
-                force_update=force_update)
+        super(Post, self).save(*args, **kwargs)
 
     @models.permalink
     def get_absolute_url(self):