Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/l/i/liquor-0.1/liquor/liquor_horse.py   liquor(Download)
def _store_products_from_a_page(lcbo_data):
    for product in lcbo_data:
            lcbo_product = models.LcboProduct()  # Initialize our lcbo product object
            for field in models.LcboProduct._meta.fields:  # For every field on our model definition
                setattr(lcbo_product, field.name, product.get(field.name, None))  # Set the field with api data, or None if it does not exist