Show More
@@ -0,0 +1,18 b'' | |||
|
1 | # -*- coding: utf-8 -*- | |
|
2 | from __future__ import unicode_literals | |
|
3 | ||
|
4 | from django.db import models, migrations | |
|
5 | ||
|
6 | ||
|
7 | class Migration(migrations.Migration): | |
|
8 | ||
|
9 | dependencies = [ | |
|
10 | ('boards', '0002_auto_20141118_2234'), | |
|
11 | ] | |
|
12 | ||
|
13 | operations = [ | |
|
14 | migrations.RemoveField( | |
|
15 | model_name='tag', | |
|
16 | name='threads', | |
|
17 | ), | |
|
18 | ] |
@@ -268,18 +268,6 b' class Post(models.Model, Viewable):' | |||
|
268 | 268 | thread.last_edit_time = edit_time |
|
269 | 269 | thread.save(update_fields=['last_edit_time']) |
|
270 | 270 | |
|
271 | @transaction.atomic | |
|
272 | def remove_tag(self, tag): | |
|
273 | edit_time = timezone.now() | |
|
274 | ||
|
275 | thread = self.get_thread() | |
|
276 | thread.remove_tag(tag) | |
|
277 | self.last_edit_time = edit_time | |
|
278 | self.save(update_fields=['last_edit_time']) | |
|
279 | ||
|
280 | thread.last_edit_time = edit_time | |
|
281 | thread.save(update_fields=['last_edit_time']) | |
|
282 | ||
|
283 | 271 | def get_url(self, thread=None): |
|
284 | 272 | """ |
|
285 | 273 | Gets full url to the post. |
General Comments 0
You need to be logged in to leave comments.
Login now