I am making a web-application with Django and I want to store application logic. What is the most optimal way to go about this? For example, I currently have something resembling this stored in my models.py but it seems sub-optimal to say the least.
class Alphabet(models.Model):
first = models.CharField(max_length=1, default = 'a')
second = models.CharField(max_length=1, default = 'b')
third = models.CharField(max_length=1, default = 'c')
class Digits(models.Model):
first = models.CharField(max_length=1, default = '1')
second = models.CharField(max_length=1, default = '2')
third = models.CharField(max_length=1, default = '3')
Characters = [Alphabet, Digits]
Should I even be storing this kind of data in my models.py folder?