#24390: Migration constraint names are non-determinstic due to hash 
randomization
--------------------------------------+------------------------
               Reporter:  timgraham   |          Owner:  nobody
                   Type:  Bug         |         Status:  new
              Component:  Migrations  |        Version:  1.7
               Severity:  Normal      |       Keywords:
           Triage Stage:  Unreviewed  |      Has patch:  0
    Needs documentation:  0           |    Needs tests:  0
Patch needs improvement:  0           |  Easy pickings:  0
                  UI/UX:  0           |
--------------------------------------+------------------------
 
[https://github.com/django/django/blob/7901eccf2e591447850be00011a7bb556a3c53f2/django/db/backends/base/schema.py#L801
 Index name generation] in migrations uses `hash()` which returns a non-
 deterministic result on Python 3 when hash randomization enabled.

 I believe constraint names are expected to be generated deterministically.

--
Ticket URL: <https://code.djangoproject.com/ticket/24390>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.b88b6018b9808abe0dcd34b1b76f547f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to