Code

Changes between Version 3 and Version 4 of NewformsHOWTO


Ignore:
Timestamp:
01/17/08 08:40:26 (6 years ago)
Author:
brosner
Comment:

fixed some syntax issues with code.

Legend:

Unmodified
Added
Removed
Modified
  • NewformsHOWTO

    v3 v4  
    201201         
    202202        def my_column(self): 
    203                         return mark_safe(u'<a href="">link</a>') 
     203            return mark_safe(u'<a href="">link</a>') 
    204204        my_column.allow_tags = True 
    205205         
    206206class MyModelOptions(admin.ModelAdmin): 
    207         list_display = ( 'my_column' ) 
     207        list_display = ('my_column',) 
    208208}}} 
    209209