Skip to content

Commit

Permalink
Remove ORGS_TIMESTAMPED_MODEL warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bennylope committed Nov 23, 2023
1 parent 11d1bec commit e0bfaaa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
4 changes: 0 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,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 <http://django-extensions.readthedocs.org/en/latest/>`_
- `Django AutoSlug <https://github.com/justinmayer/django-autoslug/>`_
- `django-slugger <https://gitlab.com/dspechnikov/django-slugger/>`_
Expand Down
9 changes: 0 additions & 9 deletions src/organizations/abstract.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import warnings

from django.conf import settings
from django.db import models
from django.urls import reverse
Expand All @@ -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):
Expand Down

0 comments on commit e0bfaaa

Please sign in to comment.