We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When casting file types, postgres throws an error.
ProgrammingError Traceback (most recent call last) <ipython-input-4-e56590351e17> in <module>() ----> 1 bulk_update(profiles) /Users/aykutozat/.virtualenvs/gezi/lib/python2.7/site-packages/bulk_update/helper.py in bulk_update(objs, update_fields, exclude_fields, using, batch_size) 63 _batched_update(objs[batch_size:], fields, batch_size, connection) 64 ---> 65 _batched_update(objs, fields, batch_size, connection) /Users/aykutozat/.virtualenvs/gezi/lib/python2.7/site-packages/bulk_update/helper.py in _batched_update(objs, fields, batch_size, connection) 59 del values, pks 60 ---> 61 connection.cursor().execute(sql, paramaters) 62 63 _batched_update(objs[batch_size:], fields, batch_size, connection) /Users/aykutozat/.virtualenvs/gezi/lib/python2.7/site-packages/django/db/backends/util.pyc in execute(self, sql, params) 67 start = time() 68 try: ---> 69 return super(CursorDebugWrapper, self).execute(sql, params) 70 finally: 71 stop = time() /Users/aykutozat/.virtualenvs/gezi/lib/python2.7/site-packages/django/db/backends/util.pyc in execute(self, sql, params) 51 return self.cursor.execute(sql) 52 else: ---> 53 return self.cursor.execute(sql, params) 54 55 def executemany(self, sql, param_list): /Users/aykutozat/.virtualenvs/gezi/lib/python2.7/site-packages/django/db/utils.pyc in __exit__(self, exc_type, exc_value, traceback) 97 if dj_exc_type not in (DataError, IntegrityError): 98 self.wrapper.errors_occurred = True ---> 99 six.reraise(dj_exc_type, dj_exc_value, traceback) 100 101 def __call__(self, func): /Users/aykutozat/.virtualenvs/gezi/lib/python2.7/site-packages/django/db/backends/util.pyc in execute(self, sql, params) 51 return self.cursor.execute(sql) 52 else: ---> 53 return self.cursor.execute(sql, params) 54 55 def executemany(self, sql, param_list): ProgrammingError: can't adapt type 'ImageFieldFile'
The text was updated successfully, but these errors were encountered:
#2 solved this.
Sorry, something went wrong.
No branches or pull requests
When casting file types, postgres throws an error.
The text was updated successfully, but these errors were encountered: