Sorry for not being this as programming question, but this caught my eye when I was trying to introspect my class objects.
I found this
{'user_id': 1, '_state': <django.db.models.base.ModelState object at 0x10ac2a750>, 'id': 2, 'playlist_id': 8}
What is the role of _state
and what ModelState
does?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…