# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.contrib import admin

from machina.core.db.models import get_model
from machina.models.fields import MarkupTextField
from machina.models.fields import MarkupTextFieldWidget


ForumProfile = get_model('forum_member', 'ForumProfile')


class ForumProfileAdmin(admin.ModelAdmin):
    list_display = ('id', 'user', 'posts_count', )
    list_filter = ('posts_count', )
    list_display_links = ('id', 'user', )
    raw_id_fields = ('user', )
    search_fields = ('user__username',)

    formfield_overrides = {
        MarkupTextField: {'widget': MarkupTextFieldWidget},
    }


admin.site.register(ForumProfile, ForumProfileAdmin)

33afe31a6bd629be1dd324134d502673914eb45b
<mask token>


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


<mask token>

<mask token>


class ForumProfileAdmin(admin.ModelAdmin):
    list_display = 'id', 'user', 'posts_count'
    list_filter = 'posts_count',
    list_display_links = 'id', 'user'
    raw_id_fields = 'user',
    search_fields = 'user__username',
    formfield_overrides = {MarkupTextField: {'widget': MarkupTextFieldWidget}}


<mask token>

<mask token>
ForumProfile = get_model('forum_member', 'ForumProfile')


class ForumProfileAdmin(admin.ModelAdmin):
    list_display = 'id', 'user', 'posts_count'
    list_filter = 'posts_count',
    list_display_links = 'id', 'user'
    raw_id_fields = 'user',
    search_fields = 'user__username',
    formfield_overrides = {MarkupTextField: {'widget': MarkupTextFieldWidget}}


admin.site.register(ForumProfile, ForumProfileAdmin)

from __future__ import unicode_literals
from django.contrib import admin
from machina.core.db.models import get_model
from machina.models.fields import MarkupTextField
from machina.models.fields import MarkupTextFieldWidget
ForumProfile = get_model('forum_member', 'ForumProfile')


class ForumProfileAdmin(admin.ModelAdmin):
    list_display = 'id', 'user', 'posts_count'
    list_filter = 'posts_count',
    list_display_links = 'id', 'user'
    raw_id_fields = 'user',
    search_fields = 'user__username',
    formfield_overrides = {MarkupTextField: {'widget': MarkupTextFieldWidget}}


admin.site.register(ForumProfile, ForumProfileAdmin)

# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from django.contrib import admin

from machina.core.db.models import get_model
from machina.models.fields import MarkupTextField
from machina.models.fields import MarkupTextFieldWidget


ForumProfile = get_model('forum_member', 'ForumProfile')


class ForumProfileAdmin(admin.ModelAdmin):
    list_display = ('id', 'user', 'posts_count', )
    list_filter = ('posts_count', )
    list_display_links = ('id', 'user', )
    raw_id_fields = ('user', )
    search_fields = ('user__username',)

    formfield_overrides = {
        MarkupTextField: {'widget': MarkupTextFieldWidget},
    }


admin.site.register(ForumProfile, ForumProfileAdmin)
