How can I filter on the boolean fields of a model, given a string representation of the attribute, taken to mean true for that attribute?
As an example, given:
class MealBooking(models.Model):
breakfast = models.BooleanField()
lunch = models.BooleanField()
dinner = models.BooleanField()
meal = "breakfast"
How can I filter on all MealBookings containing True for the field represented by meal?