Django
0
Вклад в тег
show_count = models.IntegerField(default=0)
def get_object(self, queryset=None):
self.object = super(DetailViewPageView, self).get_object()
self.object.show_count += 1
self.object.save()
return self.object