Re: Strange intermittent UUID bug

2018-11-26 Thread Tim Graham
See if https://groups.google.com/d/msg/django-users/ZGb8ofw1Ux8/TnMdqsj4AgAJ helps. On Friday, November 23, 2018 at 1:11:21 PM UTC-5, Zach wrote: > > You could try modifying to_python with something like this: > > import logging > > > def to_python(self, value): > if value is not None

Re: Strange intermittent UUID bug

2018-11-23 Thread Zach
You could try modifying to_python with something like this: import logging def to_python(self, value): if value is not None and not isinstance(value, uuid.UUID): try: value = uuid.UUID(value) except Exception as e: logging.info(

Re: Strange intermittent UUID bug

2018-11-21 Thread Ryan Nowakowski
It is suspicious that value passed in to get_db_prep_value is failing isinstance since it looks like value is already a UUID. Are you sure the UUID type of value is uuid.UUID? On November 20, 2018 11:44:52 AM CST, Jerry Vinokurov wrote: >Hi all, > >We have a project that uses UUIDs as a primar

Re: Strange intermittent UUID bug

2018-11-20 Thread Jerry Vinokurov
Addendum: I forgot to say that our version of Django is 2.1.3. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post

Strange intermittent UUID bug

2018-11-20 Thread Jerry Vinokurov
Hi all, We have a project that uses UUIDs as a primary key for some objects. Our project is deployed on AWS via Elastic Beanstalk. After the initial deploy, everything works fine, but at some point, we encounter the following error, deep within Django: ValidationError: ["'7c6eee47-53d0-48f6-a8