Use the attribute

objects

of models.

Here “objects” is a manager which takes care of all data lookup operation!

To fetch all objects, use

objects.all()

This will return the list of objects.

———

>>>card_list=Card.objects.all()

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