Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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.