Minor fixes.
authorRadek Czajka <rczajka@rczajka.pl>
Wed, 18 Sep 2019 13:52:08 +0000 (15:52 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Wed, 18 Sep 2019 13:52:08 +0000 (15:52 +0200)
src/club/admin.py
src/wolnelektury/settings/basic.py

index 64218f1..ce94a09 100644 (file)
@@ -43,7 +43,7 @@ class ScheduleInline(admin.TabularInline):
 class MembershipAdmin(admin.ModelAdmin):
     list_display = ['user']
     raw_id_fields = ['user']
 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)
     inlines = [ScheduleInline]
 
 admin.site.register(models.Membership, MembershipAdmin)
index b245ca5..4e21244 100644 (file)
@@ -85,3 +85,5 @@ MIDDLEWARE = [
 ]
 
 ROOT_URLCONF = 'wolnelektury.urls'
 ]
 
 ROOT_URLCONF = 'wolnelektury.urls'
+
+FILE_UPLOAD_PERMISSIONS = 0o640