Hi All,
I have a django model roughly as shown below:
class Event(db.Model):
creator = db.ReferenceProperty(User, required= True)
title = db.TextProperty(required = True)
description = db.TextProperty(required = True)
class Ticket(db.Model):
user = db.ReferenceProperty(User, required = True)
event = db.ReferenceProperty(Event, required = True)
total_seats = db.IntegerProperty(required = True,default=0)
available_seats = db.IntegerProperty(required = True,default=0)
Now I want to create a form from this model which should contain the events which are own by the logged in users only. Currently it shows a drop down with all the events in it.
Is it possible with django forms? I am working on google app engine.
Please suggest.