Did I find the right examples for you? yes no

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

src/d/j/Django-Pizza-14.04.3/pizza/kitchen_sink/admin.py   Django-Pizza(Download)
 
from .widgets import RichText
from .models import Page, Version, Redirect, Image, File, Blurb, Author, \
                    ImageSet, ImageSetItem, Inline, EDITORTYPES
 
            iobj = Inline.objects.filter(id=pk).first()
            if not iobj:
                iobj = Inline(id=pk, page=request.version.page, icnt=fm['icnt'].value())
                iobj.save()
 
      qs = Inline.objects.filter(page=request.version.page, icnt=count)
      if qs.count() == 0:
        iobj = Inline(page=request.version.page, icnt=count)
        iobj.save()
 

src/d/j/Django-Pizza-HEAD/pizza/kitchen_sink/admin.py   Django-Pizza(Download)
 
from .widgets import RichText
from .models import Page, Version, Redirect, Image, File, Blurb, Author, \
                    ImageSet, ImageSetItem, Inline, EDITORTYPES
 
            iobj = Inline.objects.filter(id=pk).first()
            if not iobj:
                iobj = Inline(id=pk, page=request.version.page, icnt=fm['icnt'].value())
                iobj.save()
 
      qs = Inline.objects.filter(page=request.version.page, icnt=count)
      if qs.count() == 0:
        iobj = Inline(page=request.version.page, icnt=count)
        iobj.save()