fix Essential form; build_form now adds request to kwargs
This commit is contained in:
parent
64e0acb63b
commit
8d423b7451
3 changed files with 53 additions and 39 deletions
|
@ -1,4 +1,4 @@
|
|||
# -*- coding: utf-8
|
||||
# -*- coding: utf-8 -*-
|
||||
from django.contrib import admin
|
||||
|
||||
from forum.models import Category, Forum, Topic, Post, Profile, Read,\
|
||||
|
@ -23,10 +23,12 @@ class PostAdmin(admin.ModelAdmin):
|
|||
|
||||
class ProfileAdmin(admin.ModelAdmin):
|
||||
list_display = ['user', 'status', 'time_zone', 'location', 'language']
|
||||
raw_id_fields = ['user']
|
||||
|
||||
class ReadAdmin(admin.ModelAdmin):
|
||||
list_display = ['user', 'topic', 'time']
|
||||
|
||||
raw_id_fields = ['user', 'topic']
|
||||
|
||||
class ReputationAdmin(admin.ModelAdmin):
|
||||
list_display = ['from_user', 'to_user', 'topic', 'sign', 'time', 'reason']
|
||||
raw_id_fields = ['from_user', 'to_user', 'topic']
|
||||
|
|
Reference in a new issue