admin.py 489 Bytes
Newer Older
Jamesie Pic's avatar
Jamesie Pic committed
1
2
3
4
5
# coding: utf-8
from __future__ import absolute_import

from django.contrib import admin

6
from .forms import RecommendationForm
Jamesie Pic's avatar
Jamesie Pic committed
7
8
9
10
11
from .models import Recommendation


class RecommendationsAdmin(admin.ModelAdmin):
    list_display = ('id', 'title', 'proposal', 'recommendation', 'weight')
12
13
    search_fields = ('title', 'description', 'proposal__title',
                     'proposal__dossier__title')
14
    form = RecommendationForm
Jamesie Pic's avatar
Jamesie Pic committed
15

alexandre.jauneau's avatar
alexandre.jauneau committed
16

Jamesie Pic's avatar
Jamesie Pic committed
17
admin.site.register(Recommendation, RecommendationsAdmin)