A lookup value is a pre-defined accepted value for a LookupField or MuiltipleLookupField.
| Parameter | Type | Description | 
|---|---|---|
| id | int | Identifies the lookup value in the database. | 
| name | string | Short title of the value. | 
| status | string | Status of the field, must be one of ‘active’, ‘inactive’, deleted. | 
| symbol | File | An image file that is used to display value of that lookup. | 
| field | LookupField / MultipleLookupField | Field this value is assigned to. | 
delete()Deletes the value by setting its status to inactive.
from geokey.categories.models import LookupValue
LookupValue.objects.create(name=name, field=field)
from geokey.categories.models import MultipleLookupValue
MultipleLookupValue.objects.create(name=name, field=field)
get(pk=value_id)field.lookupvalues.get(pk=2)