19 lines
524 B
Python
19 lines
524 B
Python
import django_tables2 as tables
|
|
from django.db.models import Count, Q
|
|
from django.utils.translation import ugettext as _
|
|
|
|
from webapp.models import OhlhafvChallenge, KaehmyForm
|
|
|
|
|
|
class OhlhafvTable(tables.Table):
|
|
class Meta:
|
|
model = OhlhafvChallenge
|
|
|
|
|
|
class KaehmyExportTable(tables.Table):
|
|
class Meta:
|
|
model = KaehmyForm
|
|
exclude = ['text', 'messageparent_ptr', 'custom_role_name', 'custom_role_is_board', 'timestamp']
|
|
|
|
all_roles = tables.Column(verbose_name=_('Roles'), orderable=False)
|