from casexml.apps.phone.models import SyncLogSQL
from pillowtop.dao.django import DjangoDocumentStore


class SyncLogDocumentStore(DjangoDocumentStore):
    def __init__(self):

        def _to_doc(model):
            return model.doc

        super().__init__(SyncLogSQL, doc_generator_fn=_to_doc)

from casexml.apps.phone.models import SyncLogSQL
from pillowtop.dao.django import DjangoDocumentStore


class SyncLogDocumentStore(DjangoDocumentStore):
    def __init__(self):

        def _to_doc(model):
            return model.doc

        super().__init__(SyncLogSQL, doc_generator_fn=_to_doc)

    def iter_document_ids(self):
        for doc_id in super().iter_document_ids():
            yield doc_id.hex

convert UUID to string