]> git.parisson.com Git - django-jqchat.git/commitdiff
cleanup
authoryomguy <yomguy@parisson.com>
Fri, 13 Apr 2012 01:25:26 +0000 (03:25 +0200)
committeryomguy <yomguy@parisson.com>
Fri, 13 Apr 2012 01:25:26 +0000 (03:25 +0200)
jqchat/admin.py
jqchat/models.py

index 2d12e1aa803b9bbb634db3f25add4af0fa30f4db..7564c50c34a60fb5db33e3cfb00bd13d69a69f99 100644 (file)
@@ -6,7 +6,7 @@ from django.contrib import admin
 class RoomAdmin(admin.ModelAdmin):
     list_display = ('name', 'created', 'last_activity_formatted', 'description', 'description_modified')
     readonly_fields = ('created', 'description_modified', 'content_type', 'object_id')
-    # As we've set some fields to be read-only, they will automatically appear at the end 
+    # As we've set some fields to be read-only, they will automatically appear at the end
     # of the list. Manually order the fields to be as they are defined in the model.
     fieldsets = (
         (None, {
index bc020cae022a5ba3e65b410c6997826477afb135..1299eda30f849b44ad5b85b0c4dfb8e745f8847d 100644 (file)
@@ -87,7 +87,7 @@ except:
                   (3, "has left the room."),
                  )
 class messageManager(models.Manager):
-    
+
     def create_message(self, user, room, msg):
         """Create a message for the given user."""
         m = Message.objects.create(user=user,
@@ -111,10 +111,10 @@ class Message(models.Model):
     - a text typed in by the user.
     - an event carried out in the room ("user X has left the room.").
 
-    New messages should be created through the supplied manager methods, as all 
+    New messages should be created through the supplied manager methods, as all
     messages get preformatted (added markup) for display in the chat window.
     For example:
-    
+
     Messages:
     >>> user = User.objects.create_user('john', 'lennon@thebeatles.com', 'johnpassword')
     >>> room = Room.objects.create(name='Test room')