Add string output for log entries, so they show up nicely in
authorMagnus Hagander <magnus@hagander.net>
Thu, 30 Jul 2009 14:48:46 +0000 (16:48 +0200)
committerMagnus Hagander <magnus@hagander.net>
Thu, 30 Jul 2009 14:48:46 +0000 (16:48 +0200)
delete warnings in /admin/.

hamnadmin/register/models.py

index 26f4bc042fecb12989cef38e347f0d715e7b53c7..a7757f48da8ad8513ca1e54d0680af2c04ac648d 100644 (file)
@@ -88,3 +88,5 @@ class AggregatorLog(models.Model):
                db_table = 'planet\".\"aggregatorlog'
                ordering = ['-ts']
 
+       def __unicode__(self):
+               return "Log entry (%s)" % self.ts