1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-19 21:09:37 +02:00
This commit is contained in:
Sean Morley 2024-07-10 08:22:18 -04:00
parent fb75745aab
commit 17b274d598
3 changed files with 8 additions and 4 deletions

View file

@ -47,7 +47,7 @@ class TripViewSet(viewsets.ModelViewSet):
def get_queryset(self):
return Trip.objects.filter(
Q(is_public=True) | Q(user_id=self.request.user.id)
).prefetch_related(
).select_related(
Prefetch('adventure_set', queryset=Adventure.objects.filter(
Q(is_public=True) | Q(user_id=self.request.user.id)
))

View file

@ -208,8 +208,9 @@ CORS_ORIGIN_ALLOW_ALL = True
CSRF_TRUSTED_ORIGINS = [
'https://api.adventurelog.app',
'https://adventurelog.app',
# 'https://api.adventurelog.app',
# 'https://adventurelog.app',
]
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'

View file

@ -51,7 +51,10 @@ export default {
'--btn-text-case': 'uppercase',
'--navbar-padding': '.5rem',
'--border-btn': '1px'
'--border-btn': '1px',
fontFamily:
'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'
}
}
]