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
This commit is contained in:
Adrian Holovaty 2005-07-15 23:48:54 +00:00
parent dc5f2506d1
commit 8d0610d054
1 changed files with 3 additions and 0 deletions

View File

@ -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) #
############################################