MSTC-DA-IICT / Hacktoberfest24-Library-Management-System-Django

This repository is made for the purpose of Hacktoberfest-2024
1 stars 3 forks source link

Add Relationships Between Models #3

Open Priyanshi89 opened 3 days ago

Priyanshi89 commented 3 days ago

Set up Foreign Key relationships between the Book and Author models.

AyushKhatri-Dev commented 2 days ago

Hello,

I would like to work on this issue. I have already set up Foreign Key relationships between the Book and Author models in my previous work. Here is a summary of what I have done:

Book and Author: Each book is linked to a specific author using a ForeignKey. This ensures that if an author is deleted, all associated books are also removed (on_delete=models.CASCADE). Book and Genre: Similarly, each book is linked to a genre for categorization. Since I have already implemented this, I believe I can resolve this issue quickly. Kindly assign this to me.

Thank you!