mirror of
https://github.com/pretix/pretix.git
synced 2026-08-05 09:57:49 +00:00
add depreciation warning
This commit is contained in:
@@ -473,8 +473,10 @@ class RelativeDateTimeField(forms.MultiValueField):
|
||||
limit = kwargs.pop('limit_choices')
|
||||
if any(["__" not in l for l in limit]):
|
||||
_warn_skips = (str(os.path.dirname(__file__)),)
|
||||
|
||||
warnings.warn(
|
||||
message="Please prefix limit_choices with the base the attributes refer to, for example event__date_from",
|
||||
category=DeprecationWarning,
|
||||
skip_file_prefixes=_warn_skips
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user