I have the following model class:
class ItemInstance(models.Model):
TITLE = 0
COLLECTION = 1
TVSERIES = 2
This allows me to do:
item = ItemInstance.objects.all()[0]
item.TITLE ==> 0
But not this:
cls = ItemInstance
cls.TITLE ==> error
How would I enable these vars
to be available for a @classmethod
?