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 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 -def convert_NOT_PROVIDED(x, encoder):
    16      """
    17      @rtype: L{Undefined<pyamf.Undefined>}
    18      """
    19      return pyamf.Undefined
    20
    21  pyamf.add_type(lambda x: x is fields.NOT_PROVIDED, convert_NOT_PROVIDED)
    22