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
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
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
(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:
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 =
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
6 matches
Mail list logo