Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/m/a/manabi-HEAD/apps/books/views.py   manabi(Download)
from dojango.util import to_dojo_data, json_decode, json_encode
 
from flashcards.forms import TextbookSourceForm
from flashcards.views.shortcuts import get_deck_or_404
from forms import TextbookForm
    deck = get_deck_or_404(request.user, deck_id, must_own=True)
 
    old_form = TextbookSourceForm(request.POST, instance=deck)
    new_form = TextbookForm(request.POST)
 

src/m/a/manabi-HEAD/apps/flashcards/views/crud.py   manabi(Download)
from flashcards.models import FactType, Fact, Deck, CardTemplate, FieldType
from flashcards.models import FieldContent, Card
from flashcards.forms import TextbookSourceForm
from flashcards.views.shortcuts import get_deck_or_404
from books.forms import TextbookForm
            'fact_tags': fact_tags,
 
            'textbook_source_form': TextbookSourceForm(),
            'textbook_form': TextbookForm(),
        },