Django error __str__ returned non-string (type User)

I get the error below whenever I try to access a model in my admin dashboard

__str__ returned non-string (type User)

 

message profile
Admin
2022-05-27

What this error is saying is that you are trying to return a non string object for your django model. From my experience this error occurs in your apps models.py.

To fix check which field your model is returning by default and ensure that its a string filed.

Add Message

Click on the button below to add a new message to this thread

Tags

Thread detail

Satus: Open
Messages: 1Started: 2022-05-27
loading..

DEVMAESTERS

Newsletter

Services

Frontend Development |Backend Development |Full Website Development |Bootstrap Website upgrades | Website Debbugging | Website Hosting & deployment

Contact

Interested in hiring me or collaborating with me on a project, click on any of the links below to get my social media handle

Or contact me via Tel: (+234)-806-225-7480 | Email: abubakarzakari1703@gmail.com

Copywright@devmaesters.com
Privacy Policy

By using our website,
you agree that devmaesters can store cookies on your device and disclose information in accordance with our privacy policy.