|
|
|
|
@ -28,7 +28,10 @@ def login_requiered(func): |
|
|
|
|
|
|
|
|
|
def list_of_teas(request): |
|
|
|
|
my_choice = Choice.objects.filter(users__in=[request.user]).first() |
|
|
|
|
if my_choice is None: |
|
|
|
|
choice = json.loads(my_choice.choice) |
|
|
|
|
else: |
|
|
|
|
choice = {} |
|
|
|
|
print(choice) |
|
|
|
|
dic = OrderedDict() |
|
|
|
|
for cat in TeaCategory.objects.all(): |
|
|
|
|
|