How to query one item from the database table?

XYZ.objects.get(id=1) 

Where XYZ is some class created in the model.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *