#32718: [3.2.1] Issue with assigning file to FileField
-------------------------------------+-------------------------------------
Reporter: Jakub Kleň | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 2.2
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: 3.2.1 file model | Triage Stage: Accepted
filefield fieldfile |
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Claude Paroz):
Florian,
You can also see some other use case here:
https://gitlab.gnome.org/Infrastructure/damned-
lies/-/blob/085328022/vertimus/models.py#L751, where we copy the file
attached to a model to a new model. I had to wrap `action.file.name` with
`basename` to make it work with 3.2.1. The tests failed otherwise.
--
Ticket URL: <https://code.djangoproject.com/ticket/32718#comment:16>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.4f9f4571ce88d30bf31e831ff876b753%40djangoproject.com.