Skip to content

Corrige defeito de importação em journal.wagtail_hooks e corrige a importação de collection.domain#1392

Merged
robertatakenaka merged 2 commits intoscieloorg:mainfrom
robertatakenaka:wip_crossmark_admin_e_api_get
Mar 10, 2026
Merged

Corrige defeito de importação em journal.wagtail_hooks e corrige a importação de collection.domain#1392
robertatakenaka merged 2 commits intoscieloorg:mainfrom
robertatakenaka:wip_crossmark_admin_e_api_get

Conversation

@robertatakenaka
Copy link
Member

O que esse PR faz?

Corrige defeito de importação em journal.wagtail_hooks e corrige a importação de collection.domain

Copilot AI review requested due to automatic review settings March 10, 2026 00:21
@robertatakenaka robertatakenaka merged commit 645dfe6 into scieloorg:main Mar 10, 2026
3 of 7 checks passed
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Este PR corrige problemas relacionados a autocomplete no admin do Wagtail e normaliza o valor de domain ao importar/atualizar coleções, garantindo URLs completas.

Changes:

  • Ajusta a importação de AutocompletePanel em journal/wagtail_hooks.py para usar wagtailautocomplete.edit_handlers.
  • Ao criar/atualizar Collection, adiciona https:// em domain quando não houver protocolo.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
journal/wagtail_hooks.py Corrige a importação do AutocompletePanel para a implementação do pacote wagtail-autocomplete, evitando erro de import.
collection/models.py Normaliza domain para incluir protocolo (https) quando ausente durante create_or_update.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants