Package pyamf :: Package adapters :: Module _django_db_models_fields |
[hide private]
[frames] | no frames]

# Source Code for Module pyamf.adapters._django_db_models_fields

     1  # Copyright (c) 2007-2009 The PyAMF Project.
     2  # See LICENSE.txt for details.
     3
     4  """
     5  C{django.db.models.fields} adapter module.
     6
     7  @see: U{Django Project<http://www.djangoproject.com>}
     8  @since: 0.4
     9  """
    10
    11  from django.db.models import fields
    12
    13  import pyamf
    14
    15
    16 -def convert_NOT_PROVIDED(x, encoder):
    17      """
    18      @rtype: L{Undefined<pyamf.Undefined>}
    19      """
    20      return pyamf.Undefined
    21
    22
    23  pyamf.add_type(lambda x: x is fields.NOT_PROVIDED, convert_NOT_PROVIDED)
    24