<s> from django . contrib import admin <EOL> from . models import Notification <EOL> class NotificationAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , ) <EOL> list_filter = ( '<STR_LIT>' , '<STR_LIT>' , ) <EOL> raw_id_fields = ( '<STR_LIT>' , ) <EOL> def get_display_title ( self , obj ) : <EOL> if len ( obj . title ) > <NUM_LIT:30> : <EOL> return obj . title [ : - <NUM_LIT:4> ] + '<STR_LIT>' <EOL> return obj . title <EOL> get_display_title . short_description = '<STR_LIT>' <EOL> admin . site . register ( Notification , NotificationAdmin ) </s>
