
# Register your models here.
from django.contrib import admin
from django.contrib.admin.models import LogEntry

from  .models import *
from .forms import *

class ConfigurationAdmin(admin.ModelAdmin):
    search_fields = ['name']

admin.site.register(Configuration, ConfigurationAdmin)

class AccessLogAdmin(admin.ModelAdmin):
    list_display = ('login', 'usage', 'date', 'os', 'browser')
    search_fields = ['login__username', 'login__first_name',]
admin.site.register(AccessLog, AccessLogAdmin)

class LogEntryAdmin(admin.ModelAdmin):
    list_display = ('user', 'action_time', 'content_type', 'object_repr', 'is_addition', 'is_deletion', 'is_change')
    list_filter = ('action_flag', 'action_time')
    search_fields = ['user__username', 'content_type__name', 'object_repr']
    readonly_fields = ('user', 'action_time', 'content_type', 'object_repr', 'action_flag', 'object_id', 'change_message', 'action_time')
admin.site.register(LogEntry, LogEntryAdmin)

# class TemplateAdmin(admin.ModelAdmin):
#     form = TemplateForm
# admin.site.register(Template, TemplateAdmin)
3d80450147b6bc087708ab3d7e2b744ff0f1a752
<mask token>


class AccessLogAdmin(admin.ModelAdmin):
    <mask token>
    <mask token>


<mask token>


class LogEntryAdmin(admin.ModelAdmin):
    list_display = ('user', 'action_time', 'content_type', 'object_repr',
        'is_addition', 'is_deletion', 'is_change')
    list_filter = 'action_flag', 'action_time'
    search_fields = ['user__username', 'content_type__name', 'object_repr']
    readonly_fields = ('user', 'action_time', 'content_type', 'object_repr',
        'action_flag', 'object_id', 'change_message', 'action_time')


<mask token>

<mask token>


class ConfigurationAdmin(admin.ModelAdmin):
    search_fields = ['name']


<mask token>


class AccessLogAdmin(admin.ModelAdmin):
    list_display = 'login', 'usage', 'date', 'os', 'browser'
    search_fields = ['login__username', 'login__first_name']


<mask token>


class LogEntryAdmin(admin.ModelAdmin):
    list_display = ('user', 'action_time', 'content_type', 'object_repr',
        'is_addition', 'is_deletion', 'is_change')
    list_filter = 'action_flag', 'action_time'
    search_fields = ['user__username', 'content_type__name', 'object_repr']
    readonly_fields = ('user', 'action_time', 'content_type', 'object_repr',
        'action_flag', 'object_id', 'change_message', 'action_time')


<mask token>

<mask token>


class ConfigurationAdmin(admin.ModelAdmin):
    search_fields = ['name']


admin.site.register(Configuration, ConfigurationAdmin)


class AccessLogAdmin(admin.ModelAdmin):
    list_display = 'login', 'usage', 'date', 'os', 'browser'
    search_fields = ['login__username', 'login__first_name']


admin.site.register(AccessLog, AccessLogAdmin)


class LogEntryAdmin(admin.ModelAdmin):
    list_display = ('user', 'action_time', 'content_type', 'object_repr',
        'is_addition', 'is_deletion', 'is_change')
    list_filter = 'action_flag', 'action_time'
    search_fields = ['user__username', 'content_type__name', 'object_repr']
    readonly_fields = ('user', 'action_time', 'content_type', 'object_repr',
        'action_flag', 'object_id', 'change_message', 'action_time')


admin.site.register(LogEntry, LogEntryAdmin)

from django.contrib import admin
from django.contrib.admin.models import LogEntry
from .models import *
from .forms import *


class ConfigurationAdmin(admin.ModelAdmin):
    search_fields = ['name']


admin.site.register(Configuration, ConfigurationAdmin)


class AccessLogAdmin(admin.ModelAdmin):
    list_display = 'login', 'usage', 'date', 'os', 'browser'
    search_fields = ['login__username', 'login__first_name']


admin.site.register(AccessLog, AccessLogAdmin)


class LogEntryAdmin(admin.ModelAdmin):
    list_display = ('user', 'action_time', 'content_type', 'object_repr',
        'is_addition', 'is_deletion', 'is_change')
    list_filter = 'action_flag', 'action_time'
    search_fields = ['user__username', 'content_type__name', 'object_repr']
    readonly_fields = ('user', 'action_time', 'content_type', 'object_repr',
        'action_flag', 'object_id', 'change_message', 'action_time')


admin.site.register(LogEntry, LogEntryAdmin)


# Register your models here.
from django.contrib import admin
from django.contrib.admin.models import LogEntry

from  .models import *
from .forms import *

class ConfigurationAdmin(admin.ModelAdmin):
    search_fields = ['name']

admin.site.register(Configuration, ConfigurationAdmin)

class AccessLogAdmin(admin.ModelAdmin):
    list_display = ('login', 'usage', 'date', 'os', 'browser')
    search_fields = ['login__username', 'login__first_name',]
admin.site.register(AccessLog, AccessLogAdmin)

class LogEntryAdmin(admin.ModelAdmin):
    list_display = ('user', 'action_time', 'content_type', 'object_repr', 'is_addition', 'is_deletion', 'is_change')
    list_filter = ('action_flag', 'action_time')
    search_fields = ['user__username', 'content_type__name', 'object_repr']
    readonly_fields = ('user', 'action_time', 'content_type', 'object_repr', 'action_flag', 'object_id', 'change_message', 'action_time')
admin.site.register(LogEntry, LogEntryAdmin)

# class TemplateAdmin(admin.ModelAdmin):
#     form = TemplateForm
# admin.site.register(Template, TemplateAdmin)