comparison irc/models.py @ 656:79e785f0bdad

For issue #38, change IRC bot to use Redis instead of MySQL. Also deleting the bot from this repo as it now has its own repo.
author Brian Neal <bgneal@gmail.com>
date Sat, 11 May 2013 15:22:45 -0500
parents ee87ea74d46b
children
comparison
equal deleted inserted replaced
655:d9d6b4b8bab7 656:79e785f0bdad
1 """Models for the IRC application. 1 """Models for the IRC application."""
2 The IRC application simply reports who is in the site's IRC chatroom. A bot in the channel updates
3 the table and we read it.
4 """
5 from django.db import models
6
7 class IrcChannel(models.Model):
8 name = models.CharField(max_length=30)
9 last_update = models.DateTimeField()
10
11 def __unicode__(self):
12 return self.name
13
14 class Meta:
15 ordering = ('name', )