You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have fixed this issue, It is showing "Booking is not defined" because the Booking model is defined inside room-->models.py and the Booking model methods are written inside account-->models.py. So you have to do is copying those methods and just put it below the Booking model inside room-->models.py. follow these steps:
Go to accounts directory, open models.py. There you can see model named "Guest", there you have to cut these lines which is selected.
Then you have to go to room directory and open models.py. There you will see a Booking model class. You have to paste those code here as shown in this figure below
NameError at /guests/
The text was updated successfully, but these errors were encountered: