It seems like a django queryset behaves somehow like a python list.
But it doesn't support list's .append() method as I know.
What I want to do is like:
from my_django_app.models import MyModel
queryset = MyModel.objects.none()
queryset.append(MyModel.objects.first()) ## no list's .append() method!
Is there any way to add an model instance to an existing queryset?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…