<s> from django . db import models <EOL> from cmdb . models import ConfigurationItem <EOL> class Package ( models . Model ) : <EOL> Name = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> Version = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> Repository = models . CharField ( max_length = <NUM_LIT:255> ) <EOL> AffectedItem = models . ForeignKey ( ConfigurationItem ) <EOL> DateApplied = models . DateTimeField ( ) <EOL> def __unicode__ ( self ) : <EOL> return u'<STR_LIT>' % ( self . Name , self . Version ) <EOL> class Meta : <EOL> verbose_name = '<STR_LIT>' <EOL> verbose_name_plural = '<STR_LIT>' <EOL> ordering = [ '<STR_LIT:Name>' , '<STR_LIT>' ] </s>
