3 # Copyright (C) 2012 FinalsClub Foundation
4 """ Administration configuration for notes """
6 from django.contrib import admin
8 from karmaworld.apps.notes.models import Note
10 class NoteAdmin(admin.ModelAdmin):
11 """ an Admin handler for the Note model that handles autocomplete to Course
13 raw_id_fields = ('course','user')
14 autocomplete_lookup_fields = {
15 'fk': ('course', 'user'),
17 list_display = ('fp_file', 'upstream_link', 'name', 'id')
19 admin.site.register(Note, NoteAdmin)