From 8d0610d054e3f75f4343aab0bbaf64209a030711 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 15 Jul 2005 23:48:54 +0000 Subject: [PATCH] Gave django.core.meta.Model a repr(), as a fallback git-svn-id: http://code.djangoproject.com/svn/django/trunk@89 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/meta.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/django/core/meta.py b/django/core/meta.py index 36488bbe4c..806035b3dc 100644 --- a/django/core/meta.py +++ b/django/core/meta.py @@ -687,6 +687,9 @@ class ModelBase(type): class Model: __metaclass__ = ModelBase + def __repr__(self): + return '<%s object>' % self.__class__.__name__ + ############################################ # HELPER FUNCTIONS (CURRIED MODEL METHODS) # ############################################