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.
17 lines
341 B
17 lines
341 B
from crud.base import Crud, CrudListView
|
|
from crud.masterdetail import MasterDetailCrud
|
|
|
|
from .models import City, Country
|
|
|
|
|
|
class CountryCrud(Crud):
|
|
model = Country
|
|
help_path = 'help_path',
|
|
|
|
class ListView(CrudListView):
|
|
paginate_by = 10
|
|
|
|
|
|
class CityCrud(MasterDetailCrud):
|
|
model = City
|
|
help_path = 'help_path',
|
|
|