K
K
Kamral Magaramov2020-10-04 13:59:24
Django
Kamral Magaramov, 2020-10-04 13:59:24

What does this function do: def __str__(self): return f'{self.user.username} Profile'?

I am writing authorization for the site and I came across such a function. What is she responsible for? And how critical is it not to write?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2020-10-04
@fox_12

Learn to read the documentation:
https://docs.djangoproject.com/en/3.1/ref/models/i...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question