-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adiciona modelos e Admin para Journal TocSections. #872
Conversation
def __str__(self): | ||
related_values = self.toc_items.all() | ||
value_list = [f"{toc_section.text} ({toc_section.language.code2})" for toc_section in related_values] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@samuelveigarangel sugestão de melhoria: apresentar 1 título apenas, mas adicionar entre parêntesis todos os idiomas.
journal/models.py
Outdated
|
||
|
||
class TOC(Orderable, TextWithLang, CommonControlField): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@samuelveigarangel nome mais adequado é TocSection ou TocItem. TOC = Sumário. E isso não é o sumário. Sumário é um conjunto de seções.
- Adiciona toc_items ao payload de Journal
O que esse PR faz?
Adiciona modelos e Admin para Journal TocSections.
Onde a revisão poderia começar?
pelos commits
Como este poderia ser testado manualmente?
Algum cenário de contexto que queira dar?
N/A
Screenshots
Quais são tickets relevantes?
#871
Referências
N/A