1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

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

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