Skip to content

Commit 1e7533e

Browse files
committed
Merge branch 'master' into enhancement/move-swiper-to-bundle
2 parents 84653f3 + fd4910f commit 1e7533e

32 files changed

+4248
-2538
lines changed

app/server/models.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_absolute_url(self):
3333
def image(self):
3434
raise NotImplementedError()
3535

36-
def get_template_name(self):
36+
def get_bundle_name(self):
3737
raise NotImplementedError()
3838

3939
def get_upload_template(self):
@@ -61,8 +61,8 @@ class TextClassificationProject(Project):
6161
def image(self):
6262
return staticfiles_storage.url('images/cats/text_classification.jpg')
6363

64-
def get_template_name(self):
65-
return 'annotation/document_classification.html'
64+
def get_bundle_name(self):
65+
return 'document_classification'
6666

6767
def get_upload_template(self):
6868
return 'admin/upload/text_classification.html'
@@ -88,8 +88,8 @@ class SequenceLabelingProject(Project):
8888
def image(self):
8989
return staticfiles_storage.url('images/cats/sequence_labeling.jpg')
9090

91-
def get_template_name(self):
92-
return 'annotation/sequence_labeling.html'
91+
def get_bundle_name(self):
92+
return 'sequence_labeling'
9393

9494
def get_upload_template(self):
9595
return 'admin/upload/sequence_labeling.html'
@@ -115,8 +115,8 @@ class Seq2seqProject(Project):
115115
def image(self):
116116
return staticfiles_storage.url('images/cats/seq2seq.jpg')
117117

118-
def get_template_name(self):
119-
return 'annotation/seq2seq.html'
118+
def get_bundle_name(self):
119+
return 'seq2seq'
120120

121121
def get_upload_template(self):
122122
return 'admin/upload/seq2seq.html'

0 commit comments

Comments
 (0)