mirror of https://github.com/interlegis/sapl.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
398 B
18 lines
398 B
from crud import Crud, CrudListMixin
|
|
|
|
from .models import Country
|
|
|
|
|
|
class CountryCrudListMixin(CrudListMixin):
|
|
paginate_by = 10
|
|
|
|
|
|
country_crud = Crud(
|
|
Country, 'help_path', [
|
|
['Basic Data',
|
|
[('name', 9), ('continent', 3)],
|
|
[('population', 6), ('is_cold', 6)]
|
|
],
|
|
['More Details', [('description', 12)]],
|
|
],
|
|
list_mixin=CountryCrudListMixin)
|
|
|