change admin for news
This commit is contained in:
parent
5bfbafa865
commit
411bef5272
|
|
@ -26,6 +26,7 @@ send_email_action.short_description = "Send the selected news by email"
|
|||
@admin.register(models.News)
|
||||
class NewsAdmin(admin.ModelAdmin):
|
||||
"""News admin."""
|
||||
raw_id_fields = ('address',)
|
||||
actions = [send_email_action]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user