<s> from django . db import models <EOL> from dashboard . util import url_pathify_safe <EOL> class URLPathedModel ( models . Model ) : <EOL> class Meta : <EOL> abstract = True <EOL> url_path = models . CharField ( max_length = <NUM_LIT> , editable = False , null = True ) <EOL> def save ( self , * args , ** kwargs ) : <EOL> if self . url_path is None : <EOL> self . url_path = url_pathify_safe ( self . __class__ , self . title ) <EOL> super ( URLPathedModel , self ) . save ( * args , ** kwargs ) </s>
