Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
580:c525f3e0b5d0 | 581:ee87ea74d46b |
---|---|
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', ) |