diff --git a/ChangeLog b/ChangeLog index d13b3f7..2371d33 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +v0.4 (09/08/2015) +** User ** + Redirect user to comment when it's added and not to begining of page + +** Bugs ** + Always update modification date when post/draft is saved + v0.3 (13/11/2014) ** User ** diff --git a/dynastie/models.py b/dynastie/models.py index ba5b444..207189c 100755 --- a/dynastie/models.py +++ b/dynastie/models.py @@ -255,6 +255,7 @@ class Post(models.Model): def save(self): self.title = self.title.strip() self.title_slug = slugify(self.title) + self.modification_date=datetime.now() super(Post, self).save() def manageTags(self, tags): @@ -320,7 +321,6 @@ class Post(models.Model): f = open(filename, 'wb') f.write(content) f.close() - self.modification_date=datetime.now() self.manageTags(tags) @@ -386,7 +386,6 @@ class Draft(Post): f = open(filename, 'wb') f.write(content) f.close() - self.modification_date=datetime.now() self.manageTags(tags) self.save() diff --git a/dynastie/templates/base.html b/dynastie/templates/base.html index 1b5bc4c..3509d7e 100755 --- a/dynastie/templates/base.html +++ b/dynastie/templates/base.html @@ -10,6 +10,6 @@ Users Blogs Disconnect

{% block content %} {% endblock %}


-
Dynastie 0.3
+
Dynastie 0.4
diff --git a/dynastie/views.py b/dynastie/views.py index 8681ca1..3215659 100755 --- a/dynastie/views.py +++ b/dynastie/views.py @@ -892,7 +892,8 @@ def add_comment(request, post_id, parent_id): connection.send_messages(messages) connection.close() - + + ref = ref + '#comment_%s' % (comment_index) response = HttpResponseRedirect(ref) response['Cache-Control'] = 'no-store, no-cache, must-revalidate' response['Expires'] = 'Thu, 01 Jan 1970 00:00:00 GMT'