This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
u-auth/uauth/organization/tables.py

17 lines
490 B
Python

from django.utils.translation import ugettext as _
import django_tables2 as tables
from .models import LocalAccount
class AccountTable(tables.Table):
username = tables.TemplateColumn(
'<a rel="popup" href="#" %}">{{ record.username }}</a>',
verbose_name=_('Username'))
class Meta:
model = LocalAccount
attrs = {'class': 'main', 'id': 'user-table'}
fields = ('username', 'active', 'first_name', 'last_name')
empty_text = _('None')