From e249ac32e9574d1fd8ae8885649c69adaf972dd7 Mon Sep 17 00:00:00 2001 From: Ronny Vedrilla Date: Fri, 17 Nov 2023 18:54:44 +0100 Subject: [PATCH] v9.1.6 --- .github/workflows/ci.yml | 7 ++----- README.md | 2 +- pyproject.toml | 2 +- testapp/migrations/0001_initial.py | 4 ++-- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ddea169..25f1227 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: - name: Run pre-commit hooks run: pre-commit run --all-files --hook-stage push - + validate_migrations: name: Validate migrations runs-on: ubuntu-22.04 @@ -35,12 +35,9 @@ jobs: - name: Install dependencies run: python -m pip install -U pip-tools && pip-compile --extra dev,drf,graphql,sentry,view-layer, -o requirements.txt pyproject.toml --resolver=backtracking && pip-sync - - name: todo show migrations - run: python manage.py makemigrations && cat testapp/migrations/0002_alter_commoninfobasedmodel_created_by_and_more.py - - name: Validate migration integrity run: python manage.py makemigrations --check --dry-run - + tests: name: Python ${{ matrix.python-version }}, django ${{ matrix.django-version }} diff --git a/README.md b/README.md index ec7644e..01f4991 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ The migration is really simple, just: ### Setup package for development - Create a Python virtualenv and activate it -- Install "pip-tools" with `pip install pip-tools` +- Install "pip-tools" with `pip install -U pip-tools` - Compile the requirements with `pip-compile --extra dev,drf,graphql,sentry,view-layer, -o requirements.txt pyproject.toml --resolver=backtracking` - Sync the dependencies with your virtualenv with `pip-sync` diff --git a/pyproject.toml b/pyproject.toml index 6a42244..b6cf02b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ dev = [ 'sphinx-rtd-theme==1.0.0', 'm2r2==0.3.1', 'mistune<2.0.0', - 'ambient-package-update~=23.10.8', + 'ambient-package-update~=23.11.1', 'gevent~=23.9', ] drf = [ diff --git a/testapp/migrations/0001_initial.py b/testapp/migrations/0001_initial.py index 74f4923..925691c 100644 --- a/testapp/migrations/0001_initial.py +++ b/testapp/migrations/0001_initial.py @@ -130,7 +130,7 @@ class Migration(migrations.Migration): blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, - related_name='testapp_commoninfobasedmodel_created', + related_name='%(app_label)s_%(class)s_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by', ), @@ -141,7 +141,7 @@ class Migration(migrations.Migration): blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, - related_name='testapp_commoninfobasedmodel_lastmodified', + related_name='%(app_label)s_%(class)s_lastmodified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by', ),