Skip to content

Commit 6d58c97

Browse files
committed
fix: correct defaults queryset and add organizer scoping in product_meta_values
1 parent ff01ba3 commit 6d58c97

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/eventyay/control/views/typeahead.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,8 @@ def product_meta_values(request, organizer, event):
686686
can_change_items=True,
687687
organizer=organizer,
688688
).values_list('limit_events__id', flat=True).distinct()
689-
defaults = defaults.filter(event__id__in=user_event_ids)
690-
matches = matches.filter(product__event__id__in=user_event_ids)
689+
defaults = defaults.filter(event_id__in=user_event_ids)
690+
matches = matches.filter(product__event_id__in=user_event_ids)
691691

692692
return JsonResponse(
693693
{

app/eventyay/static/jsi18n/en/djangojs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@
9393
"FIRST_DAY_OF_WEEK": 0,
9494
"MONTH_DAY_FORMAT": "F j",
9595
"NUMBER_GROUPING": 3,
96-
"SHORT_DATETIME_FORMAT": "m/d/Y P",
97-
"SHORT_DATE_FORMAT": "m/d/Y",
96+
"SHORT_DATETIME_FORMAT": "Y-m-d H:i",
97+
"SHORT_DATE_FORMAT": "Y-m-d",
9898
"THOUSAND_SEPARATOR": ",",
99-
"TIME_FORMAT": "P",
99+
"TIME_FORMAT": "H:i",
100100
"TIME_INPUT_FORMATS": [
101101
"%H:%M:%S",
102102
"%H:%M:%S.%f",

0 commit comments

Comments
 (0)