|
28 | 28 | from review.filters import ApplicationTableFilter, ApplicationTableFilterWithPromotion
|
29 | 29 | from review.forms import CommentForm, DubiousApplicationForm
|
30 | 30 | from review.models import Vote, FileReview
|
31 |
| -from review.tables import ApplicationTable, ApplicationInviteTable, ApplicationTableWithPromotion |
| 31 | +from review.tables import ApplicationTable, ApplicationInviteTable, ApplicationTableWithPromotion, \ |
| 32 | + ApplicationInviteTableWithPromotion |
32 | 33 | from user.mixins import IsOrganizerMixin
|
33 | 34 | from user.models import BlockedUser
|
34 | 35 |
|
@@ -63,12 +64,13 @@ def get_current_tabs(self, **kwargs):
|
63 | 64 | class ApplicationList(IsOrganizerMixin, ReviewApplicationTabsMixin, SingleTableMixin, FilterView):
|
64 | 65 | template_name = 'application_list.html'
|
65 | 66 | table_class = ApplicationTable
|
| 67 | + table_class_with_promotion = ApplicationTableWithPromotion |
66 | 68 | table_pagination = {'per_page': 50}
|
67 | 69 | filterset_class = ApplicationTableFilter
|
68 | 70 |
|
69 | 71 | def get_table_class(self):
|
70 | 72 | if PromotionalCode.active():
|
71 |
| - return ApplicationTableWithPromotion |
| 73 | + return self.table_class_with_promotion |
72 | 74 | return super().get_table_class()
|
73 | 75 |
|
74 | 76 | def get_filterset_class(self):
|
@@ -250,6 +252,7 @@ def get_context_data(self, **kwargs):
|
250 | 252 |
|
251 | 253 | class ApplicationListInvite(ApplicationPermissionRequiredMixin, ApplicationList):
|
252 | 254 | table_class = ApplicationInviteTable
|
| 255 | + table_class_with_promotion = ApplicationInviteTableWithPromotion |
253 | 256 | permission_required = 'application.can_invite_application'
|
254 | 257 |
|
255 | 258 | def get_current_tabs(self, **kwargs):
|
|
0 commit comments