Ticket #11316: 301ab5fb6095ef19c1c0cb12a3879e597d2317ee.diff

File 301ab5fb6095ef19c1c0cb12a3879e597d2317ee.diff, 562 bytes (added by Kyle Fuller, 15 years ago)

Patch attached and on my git repo at github http://github.com/kylef/django/commit/301ab5fb6095ef19c1c0cb12a3879e597d2317ee

  • django/db/backends/creation.py

    diff --git a/django/db/backends/creation.py b/django/db/backends/creation.py
    index 53874f9..4cbb41a 100644
    a b class BaseDatabaseCreation(object):  
    2727
    2828    def _digest(self, *args):
    2929        "Generate a 32 bit digest of a set of arguments that can be used to shorten identifying names"
    30         return '%x' % (abs(hash(args)) % (1<<32))
     30        return '%x' % (abs(hash(args)) % (4294967296L))
    3131
    3232    def sql_create_model(self, model, style, known_models=set()):
    3333        """
Back to Top