From: Radek Czajka Date: Wed, 18 Sep 2019 13:52:08 +0000 (+0200) Subject: Minor fixes. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/de25649c03f4d7d476bf8764ba8671681bfd6324?ds=inline Minor fixes. --- 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