Exemplo n.º 1
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)
     ))
Exemplo n.º 2
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))
 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))
Exemplo n.º 4
0
 def __repr__(self):
     return unicode_to_repr("<%s %s value=%s errors=%s instance=%s>" % (
         self.__class__.__name__,
         self._field.field_name,
         self.value,
         self.errors,
         self.instance,
     ))
Exemplo n.º 5
0
 def __repr__(self):
     """
     The parent representation function iterates through the queryset and
     generates a representation for every object in the queryset. This is particularly
     problematic when CMIS is enabled and for each object a query to the DMS
     has to be done.
     """
     return unicode_to_repr(
         "<%s(fields=%s)>" % (self.__class__.__name__, smart_repr(self.fields))
     )
 def __repr__(self):
     return unicode_to_repr('%s()' % self.__class__.__name__)
 def __repr__(self):
     return unicode_to_repr(
         '%s(%s)' % (self.__class__.__name__, unicode_repr(self.default))
     )
Exemplo n.º 8
0
 def __repr__(self):
     return unicode_to_repr(
         representation.serializer_repr(self, indent=1))
Exemplo n.º 9
0
 def __repr__(self):
     return unicode_to_repr(
         "<%s(queryset=%s)>" %
         (self.__class__.__name__, smart_repr(self.queryset)))
Exemplo n.º 10
0
 def __repr__(self):
     return unicode_to_repr(
         '<%s(queryset=%s, fields=%s)>' %
         (self.__class__.__name__, smart_repr(
             self.queryset), smart_repr(self.fields)))
Exemplo n.º 11
0
 def __repr__(self):
     return unicode_to_repr(representation.serializer_repr(self, indent=1))
Exemplo n.º 12
0
 def __repr__(self):
     return unicode_to_repr('ErrorDetail(string=%r, code=%r)' % (
         six.text_type(self),
         self.code,
     ))
Exemplo n.º 13
0
 def __repr__(self):
     return unicode_to_repr(representation.list_repr(self, indent=1))
Exemplo n.º 14
0
 def __repr__(self):
     return unicode_to_repr('<%s>' % (self.__class__.__name__))
Exemplo n.º 15
0
 def __repr__(self):
     return unicode_to_repr('ErrorDetail(string=%r, code=%r)' % (
         six.text_type(self),
         self.code,
     ))
Exemplo n.º 16
0
 def __repr__(self):
     return unicode_to_repr(representation.list_repr(self, indent=1))
Exemplo n.º 17
0
 def __repr__(self):
     return unicode_to_repr('%s()' % self.__class__.__name__)
Exemplo n.º 18
0
 def __repr__(self):
     return unicode_to_repr(
         '<%s value=%s errors=%s>' %
         (self.__class__.__name__, self.value, self.errors))
Exemplo n.º 19
0
 def __repr__(self):
     return unicode_to_repr('<%s(queryset=%s)>' % (
         self.__class__.__name__,
         smart_repr(self.queryset)
     ))
Exemplo n.º 20
0
 def __repr__(self):
     return unicode_to_repr(
         '%s(%s)' % (self.__class__.__name__, unicode_repr(self.default))
     )
 def __repr__(self):
     return unicode_to_repr('<%s value=%s errors=%s>' % (
         self.__class__.__name__, self.value, self.errors
     ))
Exemplo n.º 22
0
 def __repr__(self):
     return unicode_to_repr('<{}(fields={})>'.format(
         self.__class__.__name__, smart_repr(self.fields)))