But doing something as simple as Lot.objects.all().order_by("lot_nr_int") results in the following error:
FieldError: Cannot resolve keyword 'lot_nr_int' into field. Choices are: ..., lot_nr, ...
Which means, I guess, that the model isn't getting annotated correctly.
Any idea of what I'm doing wrong?
Thanks for the help.
Hey, first of all thanks for your library. It solves many of my problems but unfortunately I'm not able to get it working
Here's a peek of what my model looks like:
But doing something as simple as
Lot.objects.all().order_by("lot_nr_int")
results in the following error:FieldError: Cannot resolve keyword 'lot_nr_int' into field. Choices are: ..., lot_nr, ...
Which means, I guess, that the model isn't getting annotated correctly. Any idea of what I'm doing wrong? Thanks for the help.