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

Updating the lead count for each category #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bassamalasadi
Copy link

Now all the lead count in category list are updated properly. I'm not sure if it's the best practice, since I didn't save the update number on the database.

Adding Number field to the category model.

Passing the data that we extracted from the "Leads: Views" to the "Category_list" template.

The "leads/views.py" is able to obtain the number of leads that belong to a specific category and pushing through the "context" to the "category_list" template.

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