A
A
Azimia Reg2019-08-13 14:10:24
Django
Azimia Reg, 2019-08-13 14:10:24

How to attach django class labels for title to page?

Added a class to the models, imported and connected it to urls, added tables to the admin panel, and name (one of the variables) does not go to the page 5d529a935090d236328835.png5d529a9971c6c585994332.png5d529a9cd8f20614080356.png
PS you can provide your solution without focusing on my code, the task is simply to display the name of the Radio class on the page

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danil Markov, 2019-08-13
@qmmp123

Why are you doing like this? Anyway. You have defined a __str__ method, try just using {{ radios }}, or try{{ post.name }}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question