Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/o/p/OpenEats-HEAD/list/views.py   OpenEats(Download)
from django.utils.translation import ugettext as _
from recipe.models import Recipe
from models import GroceryList, GroceryItem, GroceryShared, GroceryAisle, GroceryRecipe
from forms import GroceryListForm, GroceryItemFormSet,GroceryUserList,GrocerySendMail, GroceryShareTo, GroceryAisleForm
from datetime import date
        recipe = get_object_or_404(Recipe, pk=request.POST['recipe_id'])
 
        new_groceryRecipe = GroceryRecipe() #save the recipe added to the grocery list
        new_groceryRecipe.recipe_id = recipe.id
        new_groceryRecipe.list_id = list.id
 
        if recipe.related:
            new_groceryRecipe = GroceryRecipe()
            new_groceryRecipe.recipe_id = recipe.related.id
            new_groceryRecipe.list_id = list.id

src/o/p/OpenEats-HEAD/list/admin.py   OpenEats(Download)
from django.contrib import admin
from models import GroceryList, GroceryItem, GroceryAisle, GroceryShared,GroceryRecipe
from forms import GroceryItemFormSet
 
class GroceryListInline(admin.TabularInline):