the issue is related to PEP8. You need to space it a little bit :) leave an
empty line before __str__ .
And it is not an error, it is just a warning :)

On Mon, Jan 13, 2020 at 11:27 PM Julius Lange <[email protected]>
wrote:

> Okay, thank you guys!
>
> I figured it out. The reason was another issue and my nooby assumtion led
> you in the wrong direction.
>
> Sorry, thanks again
> Julius
>
>
>
> Am Sonntag, 12. Januar 2020 22:56:43 UTC+1 schrieb Julius Lange:
>>
>> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/f8643164-0abb-4133-87f3-8f8f5b680923%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/f8643164-0abb-4133-87f3-8f8f5b680923%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJenkLDa0pn3Xwqhn9exYDyeC0Y_vzcB%2BR-PsNB_WGAQKGc8tw%40mail.gmail.com.

Reply via email to