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   
 9  @since: 0.4 
10  """ 
11   
12  from django.db.models import fields 
13   
14  import pyamf 
15   
16 -def convert_NOT_PROVIDED(x, encoder):
17 return pyamf.Undefined
18 19 pyamf.add_type(lambda x: x is fields.NOT_PROVIDED, convert_NOT_PROVIDED) 20