Josh VanderLinden avatar Josh VanderLinden committed 85c435b

Fixing an error about unexpected keyword argument force_insert

Comments (0)

Files changed (1)

articles/models.py

     def __unicode__(self):
         return self.name
 
-    def save(self, *args):
+    def save(self, *args, **kwargs):
         """Cleans up any characters I don't want in a URL"""
 
         # replace spaces with dashes, in case someone adds such a tag manually
         self.name = self.name.replace(' ', '-')
         self.name = TAG_RE.sub('', self.name)
-        super(Tag, self).save(*args)
+        super(Tag, self).save(*args, **kwargs)
 
     @models.permalink
     def get_absolute_url(self):
     def __unicode__(self):
         return self.title
 
-    def save(self, *args):
+    def save(self, *args, **kwargs):
         """
         Renders the article using the appropriate markup language.
         """
         if self.use_addthis_button and self.addthis_use_author and not self.addthis_username:
             self.addthis_username = self.author.username
 
-        super(Article, self).save(*args)
+        super(Article, self).save(*args, **kwargs)
         requires_save = False
 
         # if we don't have keywords, use the tags
             requires_save = True
 
         if requires_save:
-            super(Article, self).save(*args)
+            super(Article, self).save(*args, **kwargs)
 
     def _get_article_links(self):
         """
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.