Mercurial > public > sg101
annotate gpp/irc/models.py @ 478:d280b27fed17
Updating to MarkitUp 1.1.12. Merging vendor branch changes into trunk.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 11 Sep 2011 19:50:59 +0000 |
parents | dbd703f7d63a |
children |
rev | line source |
---|---|
gremmie@1 | 1 """Models for the IRC application. |
gremmie@1 | 2 The IRC application simply reports who is in the site's IRC chatroom. A bot in the channel updates |
gremmie@1 | 3 the table and we read it. |
gremmie@1 | 4 """ |
gremmie@1 | 5 from django.db import models |
gremmie@1 | 6 |
gremmie@1 | 7 class IrcChannel(models.Model): |
gremmie@1 | 8 name = models.CharField(max_length=30) |
gremmie@1 | 9 last_update = models.DateTimeField() |
gremmie@1 | 10 |
gremmie@1 | 11 def __unicode__(self): |
gremmie@1 | 12 return self.name |
gremmie@1 | 13 |
gremmie@1 | 14 class Meta: |
gremmie@1 | 15 ordering = ('name', ) |