#NEWLINE# def forwards( self , orm ) : #NEWLINE# #INDENT# 'Write your forwards methods here.' #NEWLINE# for repo in orm . Repository . objects . all ( ) : #NEWLINE# #INDENT# username = ( '' if ( repo . user is None ) else slugify ( repo . user . username ) ) #NEWLINE# repo . slug = '/' . join ( [ i for i in [ username , slugify ( repo . name ) ] if i ] ) #NEWLINE# repo . save ( )