Skip to content

Commit

Permalink
fix(list): address an issue where word lists are created out of order
Browse files Browse the repository at this point in the history
  • Loading branch information
林京 committed Nov 9, 2023
1 parent 6b8a400 commit f466558
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions hinghwa-dict-backend/word/admin.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
from django.contrib import admin
from django.contrib import messages
from django.db.models import F, Case, When, Value
from django.forms import IntegerField
from django.utils.translation import ngettext

from .models import Word, Character, Pronunciation, Application, List
from website.views import sendNotification
from django import forms


# Register your models here.
Expand Down Expand Up @@ -209,7 +206,6 @@ class ListsAdmin(admin.ModelAdmin):
inlines = (WordsInlineAdmin,)

def include_words(self, obj):
# words = List.words.through.objects.filter(li_id=obj.id).order_by('id').all()
return [bt.word for bt in obj.words.all()]


Expand Down

0 comments on commit f466558

Please sign in to comment.