from currencies.models import Currency


def currencies(request):
    currencies = Currency.objects.all()

    if not request.session.get('currency'):
        #request.session['currency'] = Currency.objects.get(code__exact='EUR')
        request.session['currency'] = Currency.objects.get(is_default__exact=True)

    return {
        'CURRENCIES': currencies,
        'currency': request.session['currency'],  # DEPRECATED
        'CURRENCY': request.session['currency']
    }

from currencies.models import Currency


def currencies(request):
    currencies = Currency.objects.all()

    if not request.session.get('currency'):
        request.session['currency'] = Currency.objects.get(is_default__exact=True)

    return {
        'CURRENCIES': currencies,
        'currency': request.session['currency'],  # DEPRECATED
        'CURRENCY': request.session['currency']
    }

Remove an old debug comment
Remove an old debug comment
