__str__()  represent string in a readable format. If you removed __str__()
it will show you object 1, object 2 in admin panel.

On Mon, Jan 13, 2020, 3:25 AM Julius Lange <juliuslang...@gmail.com> wrote:

> Dear people,
>
> currently doing the django tutorial! Really enjoy it so far.
>
> I am using PyCharm, Django version 3.0.2, Python version 3.7.1.
>
> In part 2 <https://docs.djangoproject.com/en/3.0/intro/tutorial02/> of
> the tutorial it comes to a point i need to insert a __str__ function. I add
> it like said in the tutorial and PyCharm says "Overrides Method in model"
> already.
>
> If i keep going ignoring that, i keep getting errors.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/12005821-01f0-46bd-8869-aa77cd604ea8%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/12005821-01f0-46bd-8869-aa77cd604ea8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJY8mfwj_dXGipTh6ucpimkNwDW_ed5WBZXQ4%2Bby_1sVZ0Vcxg%40mail.gmail.com.

Reply via email to