| commit 85: | 121530dc7ce0 |
| parent 84: | 72dbe002f675 |
| branch: | default |
Admin urls names has changed with trunk
11 months ago
Changed (Δ37 bytes):
raw changeset »
discussion/__init__.py (1 lines added, 4 lines removed)
Up to file-list discussion/__init__.py:
| … | … | @@ -10,9 +10,6 @@ def get_form(): |
10 |
10 |
from discussion.forms import CommentForm |
11 |
11 |
return CommentForm |
12 |
12 |
|
13 |
def get_model(): |
|
14 |
return Comment |
|
15 |
||
16 |
13 |
def denormalize_comments_count(sender, instance, created=False, **kwargs): |
17 |
14 |
"""This recalculates the comment total for the object being commented on""" |
18 |
15 |
instance.content_object.compute_nb_comments() |
| … | … | @@ -24,7 +21,7 @@ def inactivate_comments_with_too_many_ht |
24 |
21 |
comment.save() |
25 |
22 |
subject = u'Modération du commentaire de %s au sujet de %s' % (comment.user_name, comment.content_object.title) |
26 |
23 |
message = u'De : %s (%s)\n %s\n\nCommentaire :\n%s\n\n' % (comment.user_name, comment.user_email,comment.user_url, comment.comment) |
27 |
message += u'URL de modération : http://www.biologeek.com%s' % (reverse('admin |
|
24 |
message += u'URL de modération : http://www.biologeek.com%s' % (reverse('admin:%s_%s_change' % (comment._meta.app_label, comment._meta.module_name), args=[comment.id])) |
|
28 |
25 |
send_mail(subject, message, settings.SERVER_EMAIL, [email for (name, email) in settings.ADMINS], fail_silently=True) |
29 |
26 |
|
30 |
27 |
