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

Source Code for Module pyamf.adapters._django_db_models_query

 1  # Copyright (c) 2007-2008 The PyAMF Project. 
 2  # See LICENSE for details. 
 3   
 4  """ 
 5  Django model adapter module. 
 6   
 7  Sets up basic type mapping and class mappings for a 
 8  Django models. 
 9   
10  @see: U{Django Project<http://www.djangoproject.com>} 
11  @author: U{Nick Joyce<mailto:nick@boxdesign.co.uk>} 
12  @since: 0.1b 
13  """ 
14   
15  from django.db.models import query 
16   
17  import pyamf 
18   
19 -def write_queryset(qs):
20 return list(qs)
21 22 pyamf.add_type(query.QuerySet, write_queryset) 23