diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-07-20 07:33:03 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-07-26 11:41:19 +0200 |
commit | c773d5794eb425c4836c726bdf6e1e742c94e9c0 (patch) | |
tree | 823959f2181eb55d010385ffc3fbcda34e102b21 /tests/model_options | |
parent | 7bdb682215de3bf7f8f38f8161b175c225ee25fa (diff) | |
download | django-c773d5794eb425c4836c726bdf6e1e742c94e9c0.tar.gz |
Refs #27236 -- Reverted AlterIndexTogether deprecation.
This partly reverts a6385b382e05a614a99e5a5913d8e631823159a2.
Diffstat (limited to 'tests/model_options')
-rw-r--r-- | tests/model_options/test_index_together_deprecation.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/model_options/test_index_together_deprecation.py b/tests/model_options/test_index_together_deprecation.py deleted file mode 100644 index 9b5362a924..0000000000 --- a/tests/model_options/test_index_together_deprecation.py +++ /dev/null @@ -1,20 +0,0 @@ -from django.db import models -from django.test import TestCase -from django.utils.deprecation import RemovedInDjango51Warning - - -class IndexTogetherDeprecationTests(TestCase): - def test_warning(self): - msg = ( - "'index_together' is deprecated. Use 'Meta.indexes' in " - "'model_options.MyModel' instead." - ) - with self.assertRaisesMessage(RemovedInDjango51Warning, msg): - - class MyModel(models.Model): - field_1 = models.IntegerField() - field_2 = models.IntegerField() - - class Meta: - app_label = "model_options" - index_together = ["field_1", "field_2"] |