Django data model has an attribute objects

that can be used to perform queries on that model.

E.g.,

Card.objects.all()

Card.objects.filter(name__icontains=query)

etc.

This will provide a list of Card objects that matched the query (whose name contains query).

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© 2011 Web Oom Suffusion theme by Sayontan Sinha
Switch to our mobile site
Top Footer