@@ -36,10 +36,10 @@ def image(self):
3636 def get_bundle_name (self ):
3737 raise NotImplementedError ()
3838
39- def get_upload_template (self ):
39+ def get_bundle_name_upload (self ):
4040 raise NotImplementedError ()
4141
42- def get_download_template (self ):
42+ def get_bundle_name_download (self ):
4343 raise NotImplementedError ()
4444
4545 def get_annotation_serializer (self ):
@@ -64,11 +64,11 @@ def image(self):
6464 def get_bundle_name (self ):
6565 return 'document_classification'
6666
67- def get_upload_template (self ):
68- return 'admin/upload/text_classification.html '
67+ def get_bundle_name_upload (self ):
68+ return 'upload_text_classification '
6969
70- def get_download_template (self ):
71- return 'admin/download/text_classification.html '
70+ def get_bundle_name_download (self ):
71+ return 'download_text_classification '
7272
7373 def get_annotation_serializer (self ):
7474 from .serializers import DocumentAnnotationSerializer
@@ -91,11 +91,11 @@ def image(self):
9191 def get_bundle_name (self ):
9292 return 'sequence_labeling'
9393
94- def get_upload_template (self ):
95- return 'admin/upload/sequence_labeling.html '
94+ def get_bundle_name_upload (self ):
95+ return 'upload_sequence_labeling '
9696
97- def get_download_template (self ):
98- return 'admin/download/sequence_labeling.html '
97+ def get_bundle_name_download (self ):
98+ return 'download_sequence_labeling '
9999
100100 def get_annotation_serializer (self ):
101101 from .serializers import SequenceAnnotationSerializer
@@ -118,11 +118,11 @@ def image(self):
118118 def get_bundle_name (self ):
119119 return 'seq2seq'
120120
121- def get_upload_template (self ):
122- return 'admin/upload/seq2seq.html '
121+ def get_bundle_name_upload (self ):
122+ return 'upload_seq2seq '
123123
124- def get_download_template (self ):
125- return 'admin/download/seq2seq.html '
124+ def get_bundle_name_download (self ):
125+ return 'download_seq2seq '
126126
127127 def get_annotation_serializer (self ):
128128 from .serializers import Seq2seqAnnotationSerializer
0 commit comments