assume the following:
class events(db.model):
eventDate = db.DateProperty()
eventItem = db.ReferenceProperty(items)
class items(db.model):
itemCode = db.IntegerProperty()
itemTitle = db.StringProperty()
now if i have multiple events in the future for a specific item, how can i show a list of all items with only the next occurring event shown for each item?
i have tried an aggregate field in the item class as:
itemNext = db.DateProperty()
which gets updated when an event is set but the problem with this is what happens when an event is changed or deleted lots more calls have to be made to empty it or change it (unless i am missing something)