Repository: etianen/django-reversion (language: python)

Issue:
5.0.11 misses migration files
Hi 

the new release misses migration files. 
Can you run makemigrations and make a new release?

Thanks
Kolja


Discussion / hints:
Oops. I'll fix that today.

Feel free to raise a PR if you'd like to get your name on the repo as a
contributor!

On Tue, 30 Jan 2024 at 11:12, Kolja ***@***.***> wrote:

> Hi
>
> the new release misses migration files.
> Can you run makemigrations and make a new release?
>
> Thanks
> Kolja
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/etianen/django-reversion/issues/959>, or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AABEKCETMR5P7BPKTU7HFEDYRDIQLAVCNFSM6AAAAABCRBRPSOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYDONJWHAYDCOI>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>

Sure you can find the pull request here: #960

Fix patch:
diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml
index 4f908996..b4f90e5f 100644
--- a/.github/workflows/python-package.yml
+++ b/.github/workflows/python-package.yml
@@ -72,6 +72,9 @@ jobs:
     - name: Lint with flake8
       run: |
         flake8
+    - name: Check no missing migrations
+      run: |
+        tests/manage.py makemigrations --check
     - name: Test with unittest
       run: |
         coverage run tests/manage.py test tests
diff --git a/reversion/migrations/0001_squashed_0004_auto_20160611_1202.py b/reversion/migrations/0001_squashed_0004_auto_20160611_1202.py
index 8e122383..afb1618c 100644
--- a/reversion/migrations/0001_squashed_0004_auto_20160611_1202.py
+++ b/reversion/migrations/0001_squashed_0004_auto_20160611_1202.py
@@ -23,7 +23,9 @@ class Migration(migrations.Migration):
                 ('user', models.ForeignKey(blank=True, help_text='The user who created this revision.', null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='user')),
             ],
             options={
-                "ordering": ("-pk",)
+                "ordering": ("-pk",),
+                'verbose_name': 'revision',
+                'verbose_name_plural': 'revisions',
             },
         ),
         migrations.CreateModel(
@@ -39,7 +41,9 @@ class Migration(migrations.Migration):
                 ('db', models.CharField(help_text='The database the model under version control is stored in.', max_length=191)),
             ],
             options={
-                "ordering": ("-pk",)
+                "ordering": ("-pk",),
+                'verbose_name': 'version',
+                'verbose_name_plural': 'versions',
             },
         ),
         migrations.AlterUniqueTogether(


Test patch:
diff --git a/tests/test_app/migrations/0002_alter_testmodel_related_and_more.py b/tests/test_app/migrations/0002_alter_testmodel_related_and_more.py
new file mode 100644
index 00000000..d02186f9
--- /dev/null
+++ b/tests/test_app/migrations/0002_alter_testmodel_related_and_more.py
@@ -0,0 +1,23 @@
+# Generated by Django 5.0.1 on 2024-01-30 19:07
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('test_app', '0001_initial'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='testmodel',
+            name='related',
+            field=models.ManyToManyField(blank=True, related_name='+', to='test_app.testmodelrelated'),
+        ),
+        migrations.AlterField(
+            model_name='testmodel',
+            name='related_through',
+            field=models.ManyToManyField(blank=True, related_name='+', through='test_app.TestModelThrough', to='test_app.testmodelrelated'),
+        ),
+    ]