예제 #1
0
 def __repr__(self):
     """
     Fields are represented using their initial calling arguments.
     This allows us to create descriptive representations for serializer
     instances that show all the declared fields on the serializer.
     """
     return unicode_to_repr(representation.field_repr(self))
예제 #2
0
 def __repr__(self):
     return unicode_to_repr('<%s(queryset=%s, field=%s, date_field=%s)>' % (
         self.__class__.__name__,
         smart_repr(self.queryset),
         smart_repr(self.field),
         smart_repr(self.date_field)
     ))
예제 #3
0
 def __repr__(self):
     return unicode_to_repr('<%s(queryset=%s)>' % (
         self.__class__.__name__,
         smart_repr(self.queryset)
     ))
예제 #4
0
 def __repr__(self):
     return unicode_to_repr('%s()' % self.__class__.__name__)
예제 #5
0
 def __repr__(self):
     return unicode_to_repr(
         '%s(%s)' % (self.__class__.__name__, unicode_repr(self.default)))
예제 #6
0
 def __repr__(self):
     return unicode_to_repr('<%s value=%s errors=%s>' % (
         self.__class__.__name__, self.value, self.errors
     ))
예제 #7
0
 def __repr__(self):
     return unicode_to_repr(representation.list_repr(self, indent=1))
예제 #8
0
 def __repr__(self):
     return unicode_to_repr(representation.serializer_repr(self, indent=1))