I upgraded to django v3.1 and suddenly getting this error:
Field 'id' expected a number but got <SimpleLazyObject: '23'>.
The failing line of code is this:
my_obj = get_object_or_404(MyModel, pk=kwargs.get('pk'))
Any ideas what I might be doing wrong?
Thanks!