Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit bfcf089226b47510dc57996adea87453d4868c97 2 parents 33eb418 + 4b0ea4a
@jezdez jezdez authored
View
2  README.rst
@@ -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
View
2  threaded_messages/__init__.py
@@ -1,2 +1,2 @@
-VERSION = (0, 1, 26)
+VERSION = (0, 1, 28)
__version__ = '.'.join(map(str, VERSION))
View
16 threaded_messages/admin.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.