djangoTest/testapp/models.py

11 lines
316 B
Python

from django.db import models
# Create your models here.
# This is a simple model that stores a click count
class ClickCount(models.Model):
clicks = models.IntegerField(default=0)
# This method provices a string representation of the model
def __str__(self):
return f"ClickCount: {self.clicks}"