Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mpasternak committed Oct 2, 2019
1 parent 9d3c026 commit cc10e92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/bpp/management/commands/look_for_unused_fields.py
Expand Up @@ -15,6 +15,7 @@ def handle(self, silent=False, *args, **options):
if model._meta.app_label != 'bpp' or \
model._meta.object_name in ['Jednostka', 'Wydzial'] or \
model._meta.object_name.find('View') >= 0 or \
model._meta.db_table.startswith("bpp_temporary") or \
model == Sumy:
continue

Expand Down
5 changes: 5 additions & 0 deletions src/raport_slotow/views.py
Expand Up @@ -72,6 +72,11 @@ def get_tables(self):
data=cpaq.filter(dyscyplina_id=elem.dyscyplina_id).select_related("rekord", "dyscyplina"))
RequestConfig(self.request, paginate=self.get_table_pagination(table)).configure(table)
ret.append(table)
else:
table_class = self.get_table_class()
table = table_class(data=cpaq.select_related("rekord", "dyscyplina"))
RequestConfig(self.request, paginate=self.get_table_pagination(table)).configure(table)
ret.append(table)

return ret

Expand Down

0 comments on commit cc10e92

Please sign in to comment.