Skip to content

Conversation

@moradi89
Copy link

I changed this, because we want to show number of All topics completely in BROWSE TOPICS. After this change, in the topics_component.html file , {% for topic in topics %}, should be changed to {% for topic in topics|slice:":5" %} in order to limit number of all topics to 5.

I changed this, because we want to show number of All topics completely in BROWSE TOPICS. So, in the topics_component.html file , {% for topic in topics %}, should be changed to {% for topic in topics|slice:":5" %} in order to limit number of all topics to 5.
I changed this, because we want to limit the number of all Topics in BROWSE TOPICS. After this change, in the views.py file , home definition, topics = Topic.objects.all()[0:5] should be changed to topics = Topic.objects.all() in order to show number of All topics completely.
@moradi89 moradi89 changed the title Update views.py Update views.py and topics_component.html Jan 11, 2022
there is no need to this tag, because there is value="{{topic.name}} in option tag.
added description of the room.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant