from django.utils.translation import ugettext_lazy as _ from sapl.crud import build_crud from .models import LexmlProvedor, LexmlPublicador lexml_provedor_crud = build_crud( LexmlProvedor, '', [_('Provedor Lexml'), [('id_provedor', 2), ('nome', 10)], [('id_responsavel', 2), ('nome_responsavel', 5), ('email_responsavel', 5)], [('xml', 12)]], ) lexml_publicador_crud = build_crud( LexmlPublicador, '', [_('Publicador Lexml'), [('id_publicador', 2), ('nome', 5), ('sigla', 5)], [('id_responsavel', 2), ('nome_responsavel', 5), ('email_responsavel', 5)]], )