cinema booking

2020-10-08 Thread feysel abdu
I Was building a cinema booking app and I am using Django , I want to know available seats and booked seats -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: cinema booking

2020-10-08 Thread Mohammad Ahshan Danish
you need to have available seat in database On Thu, Oct 8, 2020 at 6:29 PM feysel abdu wrote: > I Was building a cinema booking app and I am using Django , I want to > know available seats and booked seats > > -- > You received this message because you are subscribed to th

Re: cinema booking

2020-10-08 Thread Kasper Laudrup
On 08/10/2020 13.52, feysel abdu wrote: I Was building a cinema  booking app and I am using Django , I want to know available seats and booked seats Consider sharing your existing code and be a bit more specific on where you need help. I don't know what kind of answer you expect to g

Re: cinema booking

2020-10-08 Thread feysel abdu
(models.Model): user_name = models.CharField(max_length=100,unique=True) # ticket_no =models.ForeignKey(Ticket, on_delete=models.CASCADE, related_name="details") row = models.PositiveSmallIntegerField() col = models.PositiveSmallIntegerField() def __str__(self): return "{} - {} - row:

Re: cinema booking

2020-10-08 Thread Ryan Nowakowski
arField(max_length=20, choices=STATUS) >number_of_seats= models.IntegerField() > >class Reservation (models.Model): >user_name = models.CharField(max_length=100,unique=True) ># ticket_no =models.ForeignKey(Ticket, on_delete=models.CASCADE, >related_name="details") >row =

Re: cinema booking

2020-10-11 Thread Dvs Khamele
lse, null=False, >> unique=True) >> row_no = models.PositiveSmallIntegerField(blank=False, null=False) >> seat_name = models.CharField(max_length=3, unique=True) >> booked_by = models.CharField(max_length=200, blank=True) >> seat_status = models.CharField(max_length=20, choice