Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 8d0610d054e3f75f4343aab0bbaf64209a030711 1 parent dc5f250
@adrianholovaty adrianholovaty authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  django/core/meta.py
View
3  django/core/meta.py
@@ -687,6 +687,9 @@ def __new__(cls, name, bases, attrs):
class Model:
__metaclass__ = ModelBase
+ def __repr__(self):
+ return '<%s object>' % self.__class__.__name__
+
############################################
# HELPER FUNCTIONS (CURRIED MODEL METHODS) #
############################################
Please sign in to comment.
Something went wrong with that request. Please try again.