Ticket #6867: warnings.diff
File warnings.diff, 1.0 KB (added by , 17 years ago) |
---|
-
django/django/db/models/fields/related.py
508 508 509 509 if 'edit_inline_type' in kwargs: 510 510 import warnings 511 warnings.warn("edit_inline_type is deprecated. Use edit_inline instead." )511 warnings.warn("edit_inline_type is deprecated. Use edit_inline instead.", DeprecationWarning) 512 512 kwargs['edit_inline'] = kwargs.pop('edit_inline_type') 513 513 514 514 kwargs['rel'] = ManyToOneRel(to, to_field, … … 618 618 619 619 if 'edit_inline_type' in kwargs: 620 620 import warnings 621 warnings.warn("edit_inline_type is deprecated. Use edit_inline instead." )621 warnings.warn("edit_inline_type is deprecated. Use edit_inline instead.", DeprecationWarning) 622 622 kwargs['edit_inline'] = kwargs.pop('edit_inline_type') 623 623 624 624 kwargs['rel'] = OneToOneRel(to, to_field,