All pastes #546554 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-06-07 02:51 UTC
rendered paste body
class BreakingNews(models.Model):
    title = models.CharField(maxlength=200, help_text="Something to remember the event $
    excerpt = models.TextField(maxlength=400, blank=False)
    article = models.ManyToManyField(Article, filter_interface=models.HORIZONTAL, limit$

    pub_date = models.DateTimeField(auto_now=True)
    published = models.BooleanField(default=False)

    class models:
        verbose_name_plural = "breaking news"
        admin = models.Admin(
            list_display = ('excerpt', 'published', 'pub_date'),
            search_fields = ('excerpt'),
        )