Did I find the right examples for you? yes no

All Samples(27)  |  Call(2)  |  Derive(0)  |  Import(25)

src/g/a/gae_django-HEAD/admin/tasks.py   gae_django(Download)
from django.contrib.admin.models import DELETION
 
from .models import LogEntry
 
def create_log(user_id, user_name, content_type, app_label, object_id, object_repr, 
               action_flag, change_message=''):
    """Create a addition or change log with the object as the parent."""
    parent = db.Key(object_id)
    log = LogEntry(
        parent = parent,
def create_deletion_log(user_id, user_name, content_type, app_label, object_id, object_repr):
    """Create a deletion log with no parent."""
    log = LogEntry(
        user_id = user_id,
        user_name = user_name,

src/n/e/neo4django-HEAD/neo4django/admin/__init__.py   neo4django(Download)
    def log_addition(self, request, object):
        from .models import LogEntry, ADDITION
        LogEntry.objects.log_action(
            user_id         = request.user.pk,
            content_type_id = ContentType.objects.get_for_model(object).pk,
    def log_change(self, request, object, message):
        from .models import LogEntry, CHANGE
        LogEntry.objects.log_action(
            user_id         = request.user.pk,
            content_type_id = ContentType.objects.get_for_model(object).pk,
    def log_deletion(self, request, object, object_repr):
        from .models import LogEntry, DELETION
        LogEntry.objects.log_action(
            user_id         = request.user.pk,
            content_type_id = ContentType.objects.get_for_model(self.model).pk,

src/m/a/mapentity-1.0.0/mapentity/views/generic.py   mapentity(Download)
from ..helpers import convertit_url, download_to_stream, user_has_perm
from ..decorators import save_history, view_permission_required, view_cache_latest
from ..models import LogEntry, ADDITION, CHANGE, DELETION
from ..serializers import GPXSerializer, CSVSerializer, DatatablesSerializer, ZipShapeSerializer
from ..filters import MapEntityFilterSet

src/d/j/django-bulbs-0.1.5/bulbs/content/serializers.py   django-bulbs(Download)
from elastimorphic.serializers import ContentTypeField, PolymorphicSerializerMixin
 
from .models import Content, Tag, LogEntry
 
 

src/d/j/django-logdb-1.1/djangologdb/admin.py   django-logdb(Download)
from django.contrib import admin
from django.utils.translation import ugettext
from django.utils.encoding import force_unicode
 
from models import LogEntry, LogAggregate

src/m/a/mapentity-1.0.0/mapentity/views/logentry.py   mapentity(Download)
                      MapEntityFormat, MapEntityLayer)
from ..filters import BaseMapEntityFilterSet
from ..models import LogEntry
from .. import registry
 

src/d/j/django-logdb-HEAD/djangologdb/admin.py   django-logdb(Download)
from django.contrib import admin
from django.utils.translation import ugettext
from django.utils.encoding import force_unicode
 
from models import LogEntry, LogAggregate

src/m/a/mapentity-1.0.0/mapentity/urls.py   mapentity(Download)
                    serve_secure_media, JSSettings)
if app_settings['ACTION_HISTORY_ENABLED']:
    from .models import LogEntry
 
 

src/n/e/neo4django-HEAD/neo4django/admin/templatetags/log.py   neo4django(Download)
 
from ...utils import copy_func
from ..models import LogEntry
 
register = template.Library()

src/d/j/django-admin2-HEAD/djadmin2/views.py   django-admin2(Download)
from . import permissions, utils
from .forms import AdminAuthenticationForm
from .models import LogEntry
from .viewmixins import Admin2Mixin, AdminModel2Mixin, Admin2ModelFormMixin
from .filters import build_list_filter, build_date_filter

  1 | 2 | 3  Next