1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #30240 -- Added SHA1, SHA224, SHA256, SHA384, and SHA512 database functions.

Thanks Mariusz Felisiak and Tim Graham for reviews.
This commit is contained in:
Nick Pope
2019-03-20 18:30:43 +00:00
committed by Mariusz Felisiak
parent 0193bf874f
commit 0b70985f42
13 changed files with 439 additions and 19 deletions

View File

@@ -0,0 +1,13 @@
from unittest import mock
from django.db import migrations
try:
from django.contrib.postgres.operations import CryptoExtension
except ImportError:
CryptoExtension = mock.Mock()
class Migration(migrations.Migration):
# Required for the SHA database functions.
operations = [CryptoExtension()]