I am trying to return an object from a database in Django. So I have this line in my views.py:
  single_appointment = Appointment.objects.get(id=int(app_id))
app_id is passed into the view as an argument.
I seem to be able to access the database, but the only problem is that if I print the single_appointment in the console, it prints just one attribute of the appointment object.
How do I get the whole object so I can access its attributes?
 
    