From 7a11ce6e6a56a0eaa2b5cc0826fb7ae73eebc56f Mon Sep 17 00:00:00 2001 From: Ben Lopatin Date: Thu, 23 Nov 2023 17:00:02 -0500 Subject: [PATCH] Remove ORGS_TIMESTAMPED_MODEL warning (#261) --- README.rst | 4 ---- src/organizations/abstract.py | 9 --------- 2 files changed, 13 deletions(-) diff --git a/README.rst b/README.rst index 5ce957d..614f667 100644 --- a/README.rst +++ b/README.rst @@ -198,10 +198,6 @@ Alternative: ORGS_SLUGFIELD = 'autoslug.fields.AutoSlugField' -Previous versions allowed you to specify an `ORGS_TIMESTAMPED_MODEL` path. This -is now ignored and the functionality satisfied by a vendored solution. A -warning will be given but this *should not* have any effect on your code. - - `django-extensions `_ - `Django AutoSlug `_ - `django-slugger `_ diff --git a/src/organizations/abstract.py b/src/organizations/abstract.py index 77d8fd1..9cfb3ca 100644 --- a/src/organizations/abstract.py +++ b/src/organizations/abstract.py @@ -1,5 +1,3 @@ -import warnings - from django.conf import settings from django.db import models from django.urls import reverse @@ -19,13 +17,6 @@ from organizations.signals import user_removed USER_MODEL = getattr(settings, "AUTH_USER_MODEL", "auth.User") -ORGS_TIMESTAMPED_MODEL = getattr(settings, "ORGS_TIMESTAMPED_MODEL", None) - -if ORGS_TIMESTAMPED_MODEL: - warnings.warn( - "Configured TimestampModel has been replaced and is now ignored.", - DeprecationWarning, - ) class SharedBaseModel(models.Model):