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:
parent
dc5f2506d1
commit
8d0610d054
|
@ -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) #
|
||||
############################################
|
||||
|
|
Loading…
Reference in New Issue