Example #1
0
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from ereports.engine.registry import registry

registry.register()
Example #2
0
# -*- coding: utf-8 -*-
from django.contrib.auth.models import User
from ereports.engine.registry import registry
from ereports.engine.report import BaseReport
from ereports.engine.datasource import Datasource


class UserDataSource(Datasource):
    model = User
    columns = ['username',
               'last_name',
               'first_name',
               'email',
               'is_staff',
               'is_active',
               'date_joined']


class UserReport(BaseReport):
    datasource = UserDataSource.as_datasource()
    title = 'Users'


registry.register(UserReport)
Example #3
0
# -*- coding: utf-8 -*-
from django.contrib.auth.models import User
from ereports.engine.registry import registry
from ereports.engine.report import BaseReport
from ereports.engine.datasource import Datasource


class UserDataSource(Datasource):
    model = User
    columns = [
        'username', 'last_name', 'first_name', 'email', 'is_staff',
        'is_active', 'date_joined'
    ]


class UserReport(BaseReport):
    datasource = UserDataSource.as_datasource()
    title = 'Users'


registry.register(UserReport)