Mercurial > public > sg101
diff gpp/core/models.py @ 37:91fd31dc78fb
Removed the database logging stuff. Will replace with Python logging.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 11 Jun 2009 01:00:31 +0000 |
parents | f3ad863505bf |
children | 423c39ee44e0 |
line wrap: on
line diff
--- a/gpp/core/models.py Thu Jun 11 00:54:44 2009 +0000 +++ b/gpp/core/models.py Thu Jun 11 01:00:31 2009 +0000 @@ -1,29 +1,5 @@ """ -This file contains the core Models used in gpp. +This file contains the core Models used in gpp +(None at this time). """ -from django.db import models - - -class DebugLog(models.Model): - '''Model to represent debug logs used during development; arbitary text can be stored''' - - LOG_LEVELS = ( - (0, 'Not Set'), - (10, 'Debug'), - (20, 'Info'), - (30, 'Warning'), - (40, 'Error'), - (50, 'Critical'), - ) - - timestamp = models.DateTimeField(auto_now_add = True) - level = models.IntegerField(choices = LOG_LEVELS) - msg = models.TextField() - - def __unicode__(self): - return '%s - %s' % (self.timestamp.strftime('%m/%d/%Y %H:%M:%S'), - self.msg[:64]) - - class Meta: - ordering = ('-timestamp', )