Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update views.py and topics_component.html #13

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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