Changeset 27
- Timestamp:
- 04/19/08 11:43:37 (7 months ago)
- Files:
-
- trunk/djangopl/apps/blog/models.py (modified) (2 diffs)
- trunk/djangopl/settings.py (modified) (2 diffs)
- trunk/djangopl/templates/comment_utils (added)
- trunk/djangopl/templates/comment_utils/comment_notification_email.txt (added)
- trunk/djangopl/templates/comments/freecomment_list.html (modified) (2 diffs)
- trunk/djangopl/templates/comments/posted.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/djangopl/apps/blog/models.py
r1 r27 1 1 import datetime 2 2 from django.db import models 3 from comment_utils.moderation import CommentModerator, moderator 3 from comment_utils.moderation import CommentModerator, moderator, ModerateFirstTimers 4 4 5 5 class Entry(models.Model): … … 31 31 return delta.days < 60 32 32 33 class EntryModerator( CommentModerator):34 akismet = True33 class EntryModerator(ModerateFirstTimers): 34 akismet = False 35 35 enable_field = "comments_enabled" 36 email_notification = True 36 37 37 38 moderator.register(Entry, EntryModerator) trunk/djangopl/settings.py
r23 r27 6 6 7 7 ADMINS = (('Adam Hoscilo','hoscilo@gmail.com'), ('Dominik Szopa', 'dszopa@gmail.com')) 8 MANAGERS = (('Dominik Szopa', 'dszopa@gmail.com')) 8 9 TIME_ZONE = 'Europe/Warsaw' 9 10 APPEND_SLASH = True … … 107 108 # django-registration settings 108 109 ACCOUNT_ACTIVATION_DAYS = 3 109 110 # comment_utils settings111 AKISMET_API_KEY = "" #TODO: Zarejestrowac i wpisac tu klucz akismettrunk/djangopl/templates/comments/freecomment_list.html
r25 r27 22 22 23 23 {% for comment in object_list %} 24 {% if comment.approved %} 24 25 <div class="comment" id="c{{ comment.id }}"> 25 26 <h3> … … 40 41 {{ comment.comment|escape|urlizetrunc:"40"|linebreaks }} 41 42 </div> 43 {% endif %} 42 44 {% endfor %} 43 45 trunk/djangopl/templates/comments/posted.html
r24 r27 6 6 7 7 <h1>Komentarz dodany prawidłowo</h1> 8 9 8 <p>Dziękujemy!</p> 9 <p>Komentarz pojawi się na stronie po akceptacji moderatora.</p> 10 10 11 11 {% if object %}