mirror of
https://github.com/fergalmoran/dss.git
synced 2025-12-22 09:38:18 +00:00
13 lines
297 B
Python
Executable File
13 lines
297 B
Python
Executable File
import logging
|
|
from django.db import models
|
|
from django.utils import simplejson
|
|
|
|
class _BaseModel(models.Model):
|
|
logger = logging.getLogger(__name__)
|
|
class Meta:
|
|
abstract = True
|
|
app_label = 'spa'
|
|
|
|
def tosimplejson(self):
|
|
ret = simplejson.dump(self)
|