Merge branch 'stable'

This commit is contained in:
Matěj Kocián 2017-03-24 21:27:08 +01:00
commit a1b841d7bf

View file

@ -5,7 +5,14 @@ from korektury.models import KorekturovanePDF
# Register your models here.
class KorekturovanePDFAdmin(VersionAdmin):
readonly_fields = ['cas', 'stran']
def get_readonly_fields(self, request, obj=None):
if obj:
return self.readonly_fields + ['pdf']
return self.readonly_fields
fieldsets = [
(None,
{'fields':