~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wlmaps/models.py

Removed app djangoratings

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
except ImportError:
12
12
    notification = None
13
13
 
14
 
from djangoratings.fields import AnonymousRatingField
15
 
 
16
14
 
17
15
class Map(models.Model):
18
16
    name = models.CharField(max_length=255, unique=True)
38
36
    nr_downloads = models.PositiveIntegerField(
39
37
        verbose_name='Download count', default=0)
40
38
 
41
 
    rating = AnonymousRatingField(range=10, can_change_vote=True)
42
39
 
43
40
    class Meta:
44
41
        ordering = ('-pub_date',)