Hi
I am using Django 4.0.4.
I am getting the TypeError quote_from_bytes() expected bytes when I save my model after creating a task.
When I backspace, the create form is still there on the screen as if not saved.
When I go to List View or Detail View, I find that everything went OK.
The error would be an inconvenience to a user.
The suggested solution from various quarters is to have get_absolute_url right, but it is:
def get_absolute_url(self):
return (
reverse("internalcontrol:task_detail", kwargs={"pk":
self.pk}),
)
The prior models also have the get_absolute_url like this and they work normally.
What could be wrong?