indexden is now optional
[oweals/karmaworld.git] / karmaworld / apps / notes / admin.py
1 #!/usr/bin/env python
2 # -*- coding:utf8 -*-
3 # Copyright (C) 2012  FinalsClub Foundation
4 """ Administration configuration for notes """
5
6 from django.contrib import admin
7
8 from karmaworld.apps.notes.models import Note
9
10 class NoteAdmin(admin.ModelAdmin):
11     """ an Admin handler for the Note model that handles autocomplete to Course 
12     """
13     raw_id_fields = ('course','user')
14     autocomplete_lookup_fields = {
15         'fk': ('course', 'user'),
16     }
17     list_display = ('fp_file', 'upstream_link', 'name', 'id')
18
19 admin.site.register(Note, NoteAdmin)