aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/git_wiki/models.py
diff options
context:
space:
mode:
authorbnewbold <bnewbold@manus.(none)>2007-03-07 01:09:52 -0800
committerbnewbold <bnewbold@manus.(none)>2007-03-07 01:09:52 -0800
commitb148bab8f549792f19ae0256c00c282f29e061dc (patch)
treee08cccaa5257e77faea258891cfd3974ec641ba8 /bn_django/git_wiki/models.py
parent3a454ef090f5afe3d0ddf119afa0ca6312e52c3b (diff)
downloadbnewnet-b148bab8f549792f19ae0256c00c282f29e061dc.tar.gz
bnewnet-b148bab8f549792f19ae0256c00c282f29e061dc.zip
much work; comments working for photos, static content moved, more
Diffstat (limited to 'bn_django/git_wiki/models.py')
-rw-r--r--bn_django/git_wiki/models.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bn_django/git_wiki/models.py b/bn_django/git_wiki/models.py
index 060e9d5..ad3affb 100644
--- a/bn_django/git_wiki/models.py
+++ b/bn_django/git_wiki/models.py
@@ -59,6 +59,7 @@ class Tree(models.Model):
self.tree_objs = tree_objs
self.blob_objs = blob_objs
self.all_objs = tree_objs + blob_objs
+ self.save()
class Item(models.Model):
@@ -90,7 +91,7 @@ class Item(models.Model):
self.contents = commands.getoutput(GITPREFIX + ' cat-file -p ' \
+ self.id)
self.size = commands.getoutput(GITPREFIX + ' cat-file -s ' + self.id)
- return
+ self.save()
class Commit(models.Model):
id = models.CharField("hash", maxlength=40,blank=False,primary_key=True)
@@ -143,8 +144,6 @@ class Commit(models.Model):
self.comment += str(l) + '\n'
else:
self.comment = '(none)'
- return
-
def fromslug(reqslug):
import commands