From becfc9e2381a43d89ba92c7a2c3bd67826df18c1 Mon Sep 17 00:00:00 2001 From: Mohamed ElKalioby Date: Tue, 10 Nov 2020 09:04:08 +0300 Subject: [PATCH] Upgraded to 2.0.3 --- CHANGELOG.md | 8 ++++++++ example/example/settings.py | 6 ++++-- mfa/__init__.py | 2 +- mfa/migrations/0010_auto_20201110_0557.py | 18 ++++++++++++++++++ setup.py | 2 +- 5 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 mfa/migrations/0010_auto_20201110_0557.py diff --git a/CHANGELOG.md b/CHANGELOG.md index c8b0bf7..2c14d38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,12 @@ # Change Log + +## 2.0.3 + * Fixed: __version__ to show correct version + +## 2.0.2 + * Added: A missing migration + thnks to @swainn + ## 2.0.1 * Fixed: issue in migration between Postgres and SQLite thnks to @swainn and @willingham diff --git a/example/example/settings.py b/example/example/settings.py index 69e405f..fe33941 100644 --- a/example/example/settings.py +++ b/example/example/settings.py @@ -77,8 +77,10 @@ DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), + 'ENGINE': 'django.db.backends.mysql', + 'NAME': 'mfa', + 'USER': 'root', + 'PASSWORD': 'password', } } diff --git a/mfa/__init__.py b/mfa/__init__.py index 00d4355..9d007ac 100644 --- a/mfa/__init__.py +++ b/mfa/__init__.py @@ -1 +1 @@ -__version__="1.6.0" +__version__="2.0.3" diff --git a/mfa/migrations/0010_auto_20201110_0557.py b/mfa/migrations/0010_auto_20201110_0557.py new file mode 100644 index 0000000..48190b6 --- /dev/null +++ b/mfa/migrations/0010_auto_20201110_0557.py @@ -0,0 +1,18 @@ +# Generated by Django 2.0 on 2020-11-10 05:57 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('mfa', '0009_user_keys_owned_by_enterprise'), + ] + + operations = [ + migrations.AlterField( + model_name='user_keys', + name='key_type', + field=models.CharField(default='TOTP', max_length=25), + ), + ] diff --git a/setup.py b/setup.py index 37d9856..06c37e9 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name='django-mfa2', - version='2.0.1', + version='2.0.3', description='Allows user to add 2FA to their accounts', long_description=open("README.md").read(), long_description_content_type="text/markdown",