diff irc/models.py @ 581:ee87ea74d46b

For Django 1.4, rearranged project structure for new manage.py.
author Brian Neal <bgneal@gmail.com>
date Sat, 05 May 2012 17:10:48 -0500
parents gpp/irc/models.py@dbd703f7d63a
children 79e785f0bdad
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/irc/models.py	Sat May 05 17:10:48 2012 -0500
@@ -0,0 +1,15 @@
+"""Models for the IRC application. 
+The IRC application simply reports who is in the site's IRC chatroom. A bot in the channel updates
+the table and we read it.
+"""
+from django.db import models
+
+class IrcChannel(models.Model):
+   name = models.CharField(max_length=30)
+   last_update = models.DateTimeField()
+
+   def __unicode__(self):
+      return self.name
+
+   class Meta:
+      ordering = ('name', )