Al 15/08/12 02:59, En/na yao ge ha escrit:
class NewsAdmin(admin.ModelAdmin):
     list_display = ('title','newstype','newsdate',)
     search_fields=('title',)
     list_filter =('newstype',)
     delete_selected_confirmation_template = True
     raw_id_fields = ('rateperson','ratetvplay',)
admin.site.register(News,NewsAdmin)


Why??


https://docs.djangoproject.com/en/1.4/ref/contrib/admin/#custom-template-options

 ModelAdmin.delete_selected_confirmation_template
    New in Django 1.2: Please see the release notes

    Path to a custom template, ...


HTH

--
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