Dynastie

Dynastie Commit Details

Date:2015-08-09 15:33:19 (4 years 11 months ago)
Author:Grégory Soutadé
Branch:master
Commit:47f5f97618346587d4cc58dd1209a38c016c4b4d
Parents: 0b871656b585343ab01ac21b0581625446297cfc
Message:Redirect user to comment when it's added and not to begining of page Always update modification date when post/draft is saved Update version

Changes:
MChangeLog (1 diff)
Mdynastie/models.py (3 diffs)
Mdynastie/templates/base.html (1 diff)
Mdynastie/views.py (1 diff)

File differences

ChangeLog
1
2
3
4
5
6
7
18
29
310
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 **
dynastie/models.py
255255
256256
257257
258
258259
259260
260261
......
320321
321322
322323
323
324324
325325
326326
......
386386
387387
388388
389
390389
391390
392391
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):
f = open(filename, 'wb')
f.write(content)
f.close()
self.modification_date=datetime.now()
self.manageTags(tags)
f = open(filename, 'wb')
f.write(content)
f.close()
self.modification_date=datetime.now()
self.manageTags(tags)
self.save()
dynastie/templates/base.html
1010
1111
1212
13
13
1414
1515
<a href="/user">Users</a> <a href="/blog">Blogs</a> <a href="/disconnect">Disconnect</a><br/><br/>
{% block content %} {% endblock %}
<br/><br/><br/>
<center><a href="http://indefero.soutade.fr/p/dynastie">Dynastie</a> 0.3</center>
<center><a href="http://indefero.soutade.fr/p/dynastie">Dynastie</a> 0.4</center>
</body>
</html>
dynastie/views.py
892892
893893
894894
895
895
896
896897
897898
898899
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'

Archive Download the corresponding diff file

Branches

Tags