bgneal@6: """ bgneal@6: Models for the bands application. bgneal@6: bgneal@6: """ bgneal@6: from django.db import models bgneal@6: bgneal@6: bgneal@6: class Band(models.Model): bgneal@6: """ bgneal@6: This model represents all the info we store about each band. bgneal@6: bgneal@6: """ bgneal@6: name = models.CharField(max_length=128) bgneal@6: url = models.URLField(verify_exists=False, max_length=200) bgneal@6: notes = models.TextField() ckridgway@55: asset_prefix = models.CharField(max_length=64, blank=True) bgneal@6: order = models.IntegerField(default=0) bgneal@6: bgneal@6: class Meta: bgneal@6: ordering = ['order', 'name'] bgneal@6: bgneal@6: def __unicode__(self): bgneal@6: return self.name