django models - display existing values of databse into formfields -
how can data databse(sqllite) dropdown button , based on selected value retrive matching values on datagrid or in csv in django
class analyzedfile(models.model): sha256 = models.charfield(db_column='sha256', max_length=64, blank=true) md5 = models.charfield(db_column='md5', max_length=32, blank=true) sha1 = models.charfield(db_column='sha1', max_length=40, blank=true) filename = models.charfield(db_column='filename', max_length=5000, blank=true) filelength = models.integerfield(db_column='filelength', blank=true, null=true) filetype = models.charfield(db_column='filetype', max_length=3, blank=true) fileentropy = models.charfield(db_column='fileentropy', max_length=50, blank=true) peidsig = models.charfield(db_column='peidsig', max_length=1000, blank=true) exeinfosig = models.charfield(db_column='exeinfosig', max_length=1000, blank=true) ssdeepsig = models.charfield(db_column='ssdeepsig', max_length=200, blank=true) digitalsig = models.charfield(db_column='digitalsig', max_length=100, blank=true) description = models.charfield(db_column='description', max_length=65000, blank=true) # field name made lowercase. analysis = models.charfield(db_column='analysis', max_length=65000, blank=true) class meta: managed = false db_table = 'analyzed_file'
Comments
Post a Comment