RE: Changing name of file in FileField field

2020-06-10 Thread matthew.pava
Ganji Sent: Tuesday, June 9, 2020 3:07 PM To: django-users@googlegroups.com Subject: Re: Changing name of file in FileField field Hi, I had come across a similar issue last year. Filename would change after the upload. It been time and I am not sure why it happened then. But, i think it

Re: Changing name of file in FileField field

2020-06-09 Thread Chetan Ganji
Hi, I had come across a similar issue last year. Filename would change after the upload. It been time and I am not sure why it happened then. But, i think it happened because a file with the same name was already present the given location. And the django/drf code would make the name of the file un

Changing name of file in FileField field

2020-06-09 Thread Matthew Pava
Good day, I have been struggling with this issue for weeks, and I can't figure out what I'm doing wrong. I have a model with a FileField with a custom upload_to function. It seems to work fine when I'm doing runserver. Problems arise during my tests. My assertion error fails: AssertionError: 'R