mirror of
https://github.com/Hopiu/django-select2.git
synced 2026-03-22 08:10:24 +00:00
9 lines
319 B
Python
9 lines
319 B
Python
from django.db import models
|
|
|
|
class KeyMap(models.Model):
|
|
key = models.CharField(max_length=40, unique=True)
|
|
value = models.CharField(max_length=100)
|
|
accessed_on = models.DateTimeField(auto_now_add=True, auto_now=True)
|
|
|
|
def __unicode__(self):
|
|
return unicode("%s => %s" % (self.key, self.value))
|