# Path: promises_instances/models.py
# class DDAHInstance(Instance):
#     pass


from promises_instances.models import DDAHInstance
from django.db import models
from ddah_web import read_template_as_string
from bunch import Bunch
from promises.models import Promise
from ddah_web.templatetags import simple_accomplishment
from django.contrib.sites.models import Site
from django.conf import settings
from django.core.urlresolvers import reverse
from picklefield.fields import PickledObjectField
from django.contrib.flatpages.models import FlatPage
from urlparse import urljoin
from django.utils.text import slugify
import json
import datetime
import markdown
import itertools


def default_json_encoder(o):
    if isinstance(0, datetime.date) or isinstance(0, datetime.datetime):
        return o.isoformat()


# This could easily be a proxy model
# I'm waiting until the end of the day to see what happens

# Path: promises_instances/models.py
# class DDAHInstance(Instance):
#     pass


# Path: ddah_web/models.py
from promises_instances.models import DDAHInstance
from django.db import models
from ddah_web import read_template_as_string
from bunch import Bunch
from promises.models import Promise
from ddah_web.templatetags import simple_accomplishment
from django.contrib.sites.models import Site
from django.conf import settings
from django.core.urlresolvers import reverse
from picklefield.fields import PickledObjectField
from django.contrib.flatpages.models import FlatPage
from urlparse import urljoin
from django.utils.text import slugify
import json
import datetime
import markdown
import itertools



def default_json_encoder(o):
    if isinstance(0, datetime.date) or isinstance(0, datetime.datetime):
        return o.isoformat()


# This could easily be a proxy model
# I'm waiting until the end of the day to see what happens

class DDAHInstanceWeb(DDAHInstance):