[Fixed]-Django not see the table in generic relation

1👍

by the line of code

Season.objects.filter(events_isactiveflags__is_active=True)

here events_isactiveflags__is_active=True means events_isactiveflags is a table and is_active is a column of the table. So no such table found named events_isactiveflags . if you are trying to get active sessions you can try this code

Session.objects.filter(expire_date__gte=timezone.now())

0👍

delete db and once again run syncdb

Leave a comment