diff options
Diffstat (limited to 'bn_django/git_wiki/models.py')
-rw-r--r-- | bn_django/git_wiki/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bn_django/git_wiki/models.py b/bn_django/git_wiki/models.py index ba133b6..f320984 100644 --- a/bn_django/git_wiki/models.py +++ b/bn_django/git_wiki/models.py @@ -97,7 +97,8 @@ class Item(models.Model): self.contents = commands.getoutput(GITPREFIX + ' cat-file -p ' \ + self.id) self.size = commands.getoutput(GITPREFIX + ' cat-file -s ' + self.id) - self.save() + if not self.isfig(): + self.save() def getfile(self): import commands |