Hello everyone

I'm trying to upload a file in a project, the app is called Documents,
here's the admin.py

from django.contrib import admin
from governors.documents.models import Document
import datetime

class DocumentAdmin(admin.ModelAdmin):
        fields = ('title','slug','the_file','lang_code')
        list_display = ('title',)
        search_fields = ('title',)
        prepopulated_fields = { 'slug': ('title',) }
        ordering = ('title',)

admin.site.register(Document, DocumentAdmin)

I keep getting an error I don't understand

Exception Type: AttributeError at /admin/documents/document/add/
Exception Value: 'tuple' object has no attribute 'startswith'

Here's the stack trace

http://dpaste.com/391662/

Anyone got any ideas?

Again, it's more than likely my idiocy shining through again :-)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to