djongo icon indicating copy to clipboard operation
djongo copied to clipboard

Custom max name length

Open pimuzzo opened this issue 3 years ago • 0 comments

This feature is essential to be able to use Djongo on AWS with DocumentDB.

Please note:

  • that according to this StackOverflow comment the AWS declared limit is 63 chars but it supports fewer chars.
  • that this edit is backward compatible.

It can be used in this way:

DATABASES = {
    'default': {
        'ENGINE': 'djongo',
        [...]
        'MAX_NAME_LENGTH': XX,
    }
}

Fix https://github.com/doableware/djongo/issues/595

pimuzzo avatar Aug 29 '22 12:08 pimuzzo