From de25649c03f4d7d476bf8764ba8671681bfd6324 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 18 Sep 2019 15:52:08 +0200 Subject: [PATCH] Minor fixes. --- src/club/admin.py | 2 +- src/wolnelektury/settings/basic.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/club/admin.py b/src/club/admin.py index 64218f169..ce94a094e 100644 --- a/src/club/admin.py +++ b/src/club/admin.py @@ -43,7 +43,7 @@ class ScheduleInline(admin.TabularInline): class MembershipAdmin(admin.ModelAdmin): list_display = ['user'] raw_id_fields = ['user'] - search_fields = ['user__username', 'user__email'] + search_fields = ['user__username', 'user__email', 'schedule__email'] inlines = [ScheduleInline] admin.site.register(models.Membership, MembershipAdmin) diff --git a/src/wolnelektury/settings/basic.py b/src/wolnelektury/settings/basic.py index b245ca5fa..4e21244d8 100644 --- a/src/wolnelektury/settings/basic.py +++ b/src/wolnelektury/settings/basic.py @@ -85,3 +85,5 @@ MIDDLEWARE = [ ] ROOT_URLCONF = 'wolnelektury.urls' + +FILE_UPLOAD_PERMISSIONS = 0o640 -- 2.20.1