<script src="/mycounter">
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