Author: Alex Date: 2009-08-02 14:37:57 -0500 (Sun, 02 Aug 2009) New Revision: 11376
Modified: django/branches/soc2009/multidb/django/db/models/fields/subclassing.py Log: [soc2009/multidb] Correct the kwarg provided to warn. Modified: django/branches/soc2009/multidb/django/db/models/fields/subclassing.py =================================================================== --- django/branches/soc2009/multidb/django/db/models/fields/subclassing.py 2009-08-01 05:26:02 UTC (rev 11375) +++ django/branches/soc2009/multidb/django/db/models/fields/subclassing.py 2009-08-02 19:37:57 UTC (rev 11376) @@ -15,14 +15,14 @@ if not takes_connection: warn("A Field class who's %s method doesn't take connection has been " "defined, please add a connection argument" % func.__name__, - PendingDeprecationWarning, depth=2) + PendingDeprecationWarning, stacklevel=2) def inner(*args, **kwargs): if 'connection' not in kwargs: from django.db import connection kwargs['connection'] = connection warn("%s has been called without providing a connection argument, " "please provide one" % func.__name__, PendingDeprecationWarning, - depth=1) + stacklevel=1) if takes_connection: return func(*args, **kwargs) if 'connection' in kwargs: --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---