28
28
class EbookAdm(admin.ModelAdmin):
29
29
ordering=['author__search_name', 'search_title']
33
33
search_fields=['title', 'search_title', 'author__name', 'author__search_name']
35
38
def save_model(self, request, obj, form, change):
37
40
obj.save(user=request.user)
39
42
class SerieAdm(admin.ModelAdmin):
40
43
ordering=['author__search_name', 'search_title']
43
45
search_fields=['title', 'search_title', 'author__name', 'author__search_name']
45
49
def save_model(self, request, obj, form, change):