I'm really just a beginner in python and django... I'm looking for a way on how to get just the id of the last item in the queryset as a counter of posts for my project. I know about the ModelName.objects.last or .latest() however if I use last i still get the "Topic object (id)" I need just the id without the preceding text. Could anyone help me?
2.1m questions
2.1m answers
60 comments
57.0k users