Commit 91a382d
authored
fix: incompatibility with djangocms-versioning-filer 1.3 was fixed (#1509)
When used with djangocms-versioning-filer, the `FileAdminChangeForm` might not
have a file field due to missing permissions.
Since djangocms-versioning-filer 1.3 the constructor of `FileAdminChangeForm`
crashes when opening the change URL of a published image.
This patch fixes this issue by adding a check whether the file field is present
before overriding it.
Signed-off-by: Florian Scherf <[email protected]>1 parent fc34247 commit 91a382d
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
0 commit comments