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

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

src/d/j/django-cached-hitcount-0.1.9/cached_hitcount/models.py   django-cached-hitcount(Download)
        ctype, object_pk = get_target_ctype_pk(object)
        Hit.objects.select_for_update().get_or_create(added=datetime.datetime.utcnow().date(), object_pk=object_pk, content_type=ctype)
        from cached_hitcount.views import _update_hit_count#prevent circular import
        _update_hit_count(None,object_pk, ctype.pk)