16 lines
350 B
Python
16 lines
350 B
Python
from django.db import models
|
|
|
|
class Parameter (models.Model):
|
|
"""
|
|
Parameter Model
|
|
Defines the attributes of a config KeyPair
|
|
"""
|
|
key = models.CharField (primary_key = True, max_length = 20)
|
|
value = models.IntegerField (null = False)
|
|
|
|
def get_value (self):
|
|
return self.value
|
|
|
|
def __repr__(self):
|
|
return self.key + ' is added.'
|