Skip to content

Conversation

@EricluvPython
Copy link
Contributor

No description provided.

Copy link
Member

@chenyx512 chenyx512 left a comment

Choose a reason for hiding this comment

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

Also try to add highlight in frontend.learning.components.ItemDisplay.WordDisplay.WordDisplay.MemoryAidView according to how highlight is added in frontend.learning.components.ItemDisplay.WordDisplay.ExampleSentences

list_filter = [('is_done', admin.BooleanFieldListFilter),
('word_set__name', MultiSelectFieldListFilter)]
readonly_fields = ('get_set_list_display',)
readonly_fields = ('get_set_list_display', 'memory_aid_highlight')
Copy link
Member

Choose a reason for hiding this comment

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

memory_aid_highlight shouldn't be added here. This admin displays the related characters under a word, and there is no need to show the memory_aid_highlight of every character when editing a word.

Copy link
Member

Choose a reason for hiding this comment

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

You should add memory_aid_highlight to WordAdmin

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.

3 participants