Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
django "__in" is not working with dj.choices objects #1
I have the following classes:
class Status(Choices): good = Choice("good") bad = Choice("bad") ugly = Choice("ugly") class StatusHolder(models.Model): status = ChoiceField(choices=Status, default=Status.good) ...
If I do:
AttributeError: 'list' object has no attribute 'id'
I think this should work as any other field, am I right?