from django.contrib import admin
from django.utils.translation import ugettext_lazy as _


def _date(obj):
    return obj.date.strftime('%Y-%m-%d %H:%M:%S')
_date.short_description = _(u'Date')


class AdminContact(admin.ModelAdmin):

    fields = (
            'email',
            'subject',
            'message',
            'website',
            )

    list_filter = (
            )

    list_display = (
            'email',
            'subject',
            'website',
            _date,
            )

    search_fields = (
            'email',
            'subject',
            'message',
            'website',
            )
