mirror of https://github.com/interlegis/sapl.git
Browse Source
- Adição o model SessaoPlenaria à pesquisa textual - cria SaplSearchForm e fixa ordem da listagem decr por last_updated - aplica paginação padrão do Sapl à pesquisa textualpull/3468/head
Leandro Roberto
3 years ago
11 changed files with 142 additions and 21 deletions
@ -0,0 +1,26 @@ |
|||
# Generated by Django 2.2.24 on 2021-10-22 00:36 |
|||
|
|||
from django.core.management import call_command |
|||
from django.db import migrations, models |
|||
|
|||
|
|||
def update_solr(*args, **kwargs): |
|||
call_command('update_index', 'sessao', verbosity=3, batchsize=100) |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('sessao', '0058_corrige_data_ordem'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AddField( |
|||
model_name='sessaoplenaria', |
|||
name='data_ultima_atualizacao', |
|||
field=models.DateTimeField( |
|||
auto_now=True, null=True, verbose_name='Data'), |
|||
), |
|||
migrations.RunPython(update_solr), |
|||
|
|||
] |
@ -0,0 +1,7 @@ |
|||
{% for k, v in extracted.metadata.items %} |
|||
{% for val in v %} |
|||
{{ k }}: {{ val|safe }} |
|||
{% endfor %} |
|||
{% endfor %} |
|||
|
|||
{{ extracted|striptags|safe }} |
Loading…
Reference in new issue