Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #6867 -- Added some missing DeprecationWarnings to db.models.fi…

…elds.related. Thanks, dcramer

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7362 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 3d779efbe53f0abf88938f0c7963bd3b3639e46a 1 parent 0e552e5
Adrian Holovaty adrianholovaty authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/db/models/fields/related.py
4 django/db/models/fields/related.py
View
@@ -508,7 +508,7 @@ def __init__(self, to, to_field=None, **kwargs):
if 'edit_inline_type' in kwargs:
import warnings
- warnings.warn("edit_inline_type is deprecated. Use edit_inline instead.")
+ warnings.warn("edit_inline_type is deprecated. Use edit_inline instead.", DeprecationWarning)
kwargs['edit_inline'] = kwargs.pop('edit_inline_type')
kwargs['rel'] = ManyToOneRel(to, to_field,
@@ -618,7 +618,7 @@ def __init__(self, to, to_field=None, **kwargs):
if 'edit_inline_type' in kwargs:
import warnings
- warnings.warn("edit_inline_type is deprecated. Use edit_inline instead.")
+ warnings.warn("edit_inline_type is deprecated. Use edit_inline instead.", DeprecationWarning)
kwargs['edit_inline'] = kwargs.pop('edit_inline_type')
kwargs['rel'] = OneToOneRel(to, to_field,
Please sign in to comment.
Something went wrong with that request. Please try again.