Add Model Detail in models.py
Add Model Detail in models.py

วิธีใช้

b = Book.objects.get( name = "peachman")
username = b.student.user.username
password = b.student.user.password
name = b.student.user.first_name
catName = b.catagory.name
date = b.date
status = b.get_status_display();

รายละเอียด User model จาก django.contrib.auth

DreamN/Smart-Library,DreamN/Smart-Library,DreamN/Smart-Library