mirror of https://github.com/interlegis/sapl.git
Browse Source
- MetadataFieldFile.__str__: return original_filename from metadata so
template links show the user-supplied name instead of the UUID path
- MetadataFileField.pre_save: capture original_filename from
file_before.name (FieldFile attribute set to the upload name by
FileDescriptor) instead of file_before.file.name (TemporaryUploadedFile
temp-file path), which was producing wrong filenames
- serve_file: add settings.DEBUG branch that streams bytes via
FileResponse so the dev server works; production path unchanged
(X-Accel-Redirect)
- serve_image: same DEBUG fallback via FileResponse
- norma/normajuridica_detail.html: replace hardcoded /media/{{field}}
href with {{p.anexo_arquivo.url}} so annexed-file links work now
that /media/ is nginx-internal
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
file-metafields
3 changed files with 45 additions and 8 deletions
Loading…
Reference in new issue