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