Skip to content

Commit

Permalink
Fix bad import and change context variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
tmnkv committed Feb 9, 2018
1 parent 3ef38e9 commit ce4fc47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions session_favorites/context_processors.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from apps.favorites.classes import Favorite
from .classes import Favorite


def add_favorite(request):
def add_favorites(request):
ctx = dict()
ctx['favorite'] = Favorite(request.session)
ctx['favorites'] = Favorite(request.session)
return ctx

0 comments on commit ce4fc47

Please sign in to comment.