Skip to content

Commit

Permalink
Fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hugorodgerbrown committed Nov 13, 2023
1 parent 527684c commit 89b659b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion magic_link/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from django.db import migrations, models

import magic_link.models
import magic_link.settings


class Migration(migrations.Migration):
Expand Down Expand Up @@ -41,7 +42,7 @@ class Migration(migrations.Migration):
(
"redirect_to",
models.CharField(
default="/",
default=magic_link.settings.DEFAULT_REDIRECT,
help_text="URL to which user will be redirected after logging in. ('/')",
max_length=255,
),
Expand Down
10 changes: 5 additions & 5 deletions tests/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.0.8 on 2020-07-27 13:32
# Generated by Django 4.2.7 on 2023-11-13 13:35

import django.contrib.auth.models
import django.contrib.auth.validators
Expand All @@ -10,7 +10,7 @@ class Migration(migrations.Migration):
initial = True

dependencies = [
("auth", "0011_update_proxy_permissions"),
("auth", "0012_alter_user_first_name_max_length"),
]

operations = [
Expand Down Expand Up @@ -59,7 +59,7 @@ class Migration(migrations.Migration):
(
"first_name",
models.CharField(
blank=True, max_length=30, verbose_name="first name"
blank=True, max_length=150, verbose_name="first name"
),
),
(
Expand Down Expand Up @@ -103,7 +103,7 @@ class Migration(migrations.Migration):
help_text="The groups this user belongs to. A user will get all permissions granted to each of their groups.",
related_name="user_set",
related_query_name="user",
to="auth.Group",
to="auth.group",
verbose_name="groups",
),
),
Expand All @@ -114,7 +114,7 @@ class Migration(migrations.Migration):
help_text="Specific permissions for this user.",
related_name="user_set",
related_query_name="user",
to="auth.Permission",
to="auth.permission",
verbose_name="user permissions",
),
),
Expand Down
2 changes: 2 additions & 0 deletions tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": "test.db"}}

DEFAULT_AUTO_FIELD = "django.db.models.AutoField"

INSTALLED_APPS = (
"django.contrib.admin",
"django.contrib.auth",
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ envlist =
[testenv]
deps =
coverage
freezegun
pytest
pytest-cov
pytest-django
Expand Down

0 comments on commit 89b659b

Please sign in to comment.