[Answered ]-Django objects.get(): The QuerySet value for an exact lookup must be limited to one result using slicing

1👍

There is no need to do two queries to Account when you want to access other columns in the same data set.

Simply call the field you want from the initial filter.

It should be noted that filters can return multiple rows if they exist, if you want to ensure only the first is returned add .first() to your filter.

Now you can call the following to return the username.

email.username

Leave a comment