Пример #1
0
class RatingTestModel(models.Model):
    rating = AnonymousRatingField(range=2, can_change_vote=True)
    rating2 = RatingField(range=2, can_change_vote=False)

    def __unicode__(self):
        return unicode(self.pk)

    class Meta:
        app_label = 'auth'  #dirty workaround for south ticket#520
Пример #2
0
class RatingTestModel(models.Model):
    rating = AnonymousRatingField(range=2, can_change_vote=True)
    rating2 = RatingField(range=2, can_change_vote=False)
Пример #3
0
class RatingTestModel(models.Model):
    rating = AnonymousRatingField(range=2, can_change_vote=True)
    rating2 = RatingField(range=2, can_change_vote=False)

    def __unicode__(self):
        return unicode(self.pk)