#32845: Names of uploaded files cannot be modified. -------------------------------------+------------------------------------- Reporter: Jacob Fredericksen | Owner: nobody Type: Bug | Status: new Component: File | Version: 3.2 uploads/storage | Severity: Normal | Resolution: Keywords: | Triage Stage: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Bal Krishna Jha): You need to refer `model_instance` while changing the name. Replace `f.file.name` with `model_instance.file.name` and it should work. -- Ticket URL: <https://code.djangoproject.com/ticket/32845#comment:4> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/067.6744ffc1a37fd7edc940aa7994fdc40a%40djangoproject.com.