parent
3b32ae8291
commit
f796a7cd95
|
@ -1,6 +1,5 @@
|
||||||
import os
|
import os
|
||||||
import yaml
|
import yaml
|
||||||
import pprint
|
|
||||||
from elasticsearch_dsl import (
|
from elasticsearch_dsl import (
|
||||||
Index,
|
Index,
|
||||||
Document,
|
Document,
|
||||||
|
@ -17,14 +16,14 @@ class BaseDoc(Document):
|
||||||
date_modified = Date()
|
date_modified = Date()
|
||||||
|
|
||||||
def save(self, **kwargs):
|
def save(self, **kwargs):
|
||||||
return super(BaseDoc, self).save(** kwargs)
|
return super(BaseDoc, self).save(**kwargs)
|
||||||
|
|
||||||
class BaseInner(InnerDoc):
|
class BaseInner(InnerDoc):
|
||||||
date_created = Date()
|
date_created = Date()
|
||||||
date_modified = Date()
|
date_modified = Date()
|
||||||
|
|
||||||
def save(self, **kwargs):
|
def save(self, **kwargs):
|
||||||
return super(BaseInner, self).save(** kwargs)
|
return super(BaseInner, self).save(**kwargs)
|
||||||
|
|
||||||
|
|
||||||
class Registration(BaseInner):
|
class Registration(BaseInner):
|
||||||
|
@ -45,7 +44,6 @@ class Renewal(BaseDoc):
|
||||||
authors = Text()
|
authors = Text()
|
||||||
|
|
||||||
claimants = Nested(Claimant)
|
claimants = Nested(Claimant)
|
||||||
# pprint.pprint(dict(os.environ), width = 1)
|
|
||||||
class Index:
|
class Index:
|
||||||
name = os.environ['ES_CCR_INDEX']
|
name = os.environ['ES_CCR_INDEX']
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue