All pastes #386346 Raw Edit

Something

public python v1 · immutable
·published 2007-03-08 15:17 UTC
rendered paste body
as            (None, {'fields': ('question')}),            ('Date information:', {'fields': ('pub_date',), 'classes': 'collapse'}),        )        list_display = ('question', 'pub_date', 'publ_today')        list_filter = ['pub_date']class Choice(models.Model):    poll = models.ForeignKey(Poll, edit_inline=models.STACKED, num_in_admin=3)    choice = models.CharField(maxlength=200, core=True)    votes = models.IntegerField(core=True)    def __str__(self):        return self.choice