File tree Expand file tree Collapse file tree 1 file changed +22
-4
lines changed
Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -602,7 +602,25 @@ class Meta:
602602 }
603603api .doc .register (ReviewRequestDocEventResource ())
604604
605-
606-
607-
608-
605+ from ietf .person .resources import PersonResource
606+ class EditedAuthorsDocEventResource (ModelResource ):
607+ by = ToOneField (PersonResource , 'by' )
608+ doc = ToOneField (DocumentResource , 'doc' )
609+ docevent_ptr = ToOneField (DocEventResource , 'docevent_ptr' )
610+ class Meta :
611+ queryset = EditedAuthorsDocEvent .objects .all ()
612+ serializer = api .Serializer ()
613+ cache = SimpleCache ()
614+ #resource_name = 'editedauthorsdocevent'
615+ filtering = {
616+ "id" : ALL ,
617+ "time" : ALL ,
618+ "type" : ALL ,
619+ "rev" : ALL ,
620+ "desc" : ALL ,
621+ "basis" : ALL ,
622+ "by" : ALL_WITH_RELATIONS ,
623+ "doc" : ALL_WITH_RELATIONS ,
624+ "docevent_ptr" : ALL_WITH_RELATIONS ,
625+ }
626+ api .doc .register (EditedAuthorsDocEventResource ())
You can’t perform that action at this time.
0 commit comments