I\'m trying to fetch the id of certain object in django but I keep getting the following error
Exception Value: QuerySet; Object has no attribute id.
my function in views.py
The reason why you are getting the error is because at is a QuerySet ie: a list. You can do something like at[0].id or use get instead of filter to get the at object.