Mercurial > public > sg101
diff gpp/irc/models.py @ 1:dbd703f7d63a
Initial import of sg101 stuff from private repository.
author | gremmie |
---|---|
date | Mon, 06 Apr 2009 02:43:12 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gpp/irc/models.py Mon Apr 06 02:43:12 2009 +0000 @@ -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', )