Permalink
Browse files

Merge branch 'master' of github.com:Gidsy/django-threaded-messages

  • Loading branch information...
2 parents 33eb418 + 4b0ea4a commit bfcf089226b47510dc57996adea87453d4868c97 @jezdez jezdez committed Feb 23, 2012
Showing with 16 additions and 4 deletions.
  1. +1 −1 README.rst
  2. +1 −1 threaded_messages/__init__.py
  3. +14 −2 threaded_messages/admin.py
View
@@ -60,7 +60,7 @@ I am not sure what the exact differences are to this implementation. I am pretty
Follow Me
===============
http://github.com/philippWassibauer
-http://twitter.com/scalar
+http://twitter.com/__philw__
http://philippw.tumblr.com
https://bitbucket.org/philippwassibauer
@@ -1,2 +1,2 @@
-VERSION = (0, 1, 26)
+VERSION = (0, 1, 28)
__version__ = '.'.join(map(str, VERSION))
@@ -6,9 +6,21 @@
from threaded_messages.models import *
+
+
class MessageAdmin(admin.ModelAdmin):
list_display = ('sender', 'sent_at','body')
-
+ ordering = ('-sent_at',)
+ search_fields = ('body', 'sender__first_name',
+ 'sender__last_name', 'sender__username')
admin.site.register(Message, MessageAdmin)
-admin.site.register(Thread)
+
+
+class ThreadAdmin(admin.ModelAdmin):
+ list_display = ('subject', 'creator', 'replied')
+ search_fields = ('subject', 'creator__first_name',
+ 'creator__last_name', 'creator__username')
+admin.site.register(Thread, ThreadAdmin)
+
+
admin.site.register(Participant)

0 comments on commit bfcf089

Please sign in to comment.