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

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

src/c/r/crate-site-HEAD/crateweb/apps/pypi/processor.py   crate-site(Download)
from django.utils.timezone import utc
 
from history.models import Event
from packages.models import Package, Release, TroveClassifier
from packages.models import ReleaseRequire, ReleaseProvide, ReleaseObsolete, ReleaseURI, ReleaseFile

src/c/r/crate-site-HEAD/crateweb/apps/packages/views.py   crate-site(Download)
from django.views.generic.detail import DetailView
 
from history.models import Event
from packages.models import Release
 

src/c/r/crate-site-HEAD/crateweb/apps/packages/models.py   crate-site(Download)
    def history(self):
        from history.models import Event
 
        return Event.objects.filter(package=self.package.name).order_by("-created")
 

src/c/r/crate-site-HEAD/crateweb/apps/history/admin.py   crate-site(Download)
from django.contrib import admin
 
from history.models import Event
 
 

src/c/r/crate.web-HEAD/crate/web/packages/models.py   crate.web(Download)
    def history(self):
        from history.models import Event
 
        return Event.objects.filter(package=self.package.name).order_by("-created")