mirror of
https://github.com/fergalmoran/dss.api.git
synced 2025-12-28 04:09:51 +00:00
13 lines
354 B
Python
Executable File
13 lines
354 B
Python
Executable File
from django.db import models
|
|
from django.db.models.loading import get_model
|
|
from basemodel import BaseModel
|
|
|
|
class _Lookup(BaseModel):
|
|
description = models.CharField(max_length=100)
|
|
|
|
def __unicode__(self):
|
|
return self.description
|
|
|
|
@classmethod
|
|
def get_select_lookup(cls):
|
|
return {'description' : 'description'} |