Open ezspot opened 3 years ago
where is that field?
can you show the file name and the locations?
Found it in db.sqlite3
yes, there is a ForeignKey to the user,
so if the user already have an account, we link the appointment to the user
class Booking(models.Model):
user = models.ForeignKey(settings.AUTH_USER_MODEL,
on_delete=models.CASCADE, blank=True, null=True)
date = models.DateField()
...
But the user is not defined everywhere else? So what user are we talking about.
Django user modal.
we need to assign the appointment to the user in the create booking view
Not sure what's the plan with this field, but it's empty. Just remove? Or