You can use YourModel._meta.fields to dynamically generate a list of
checkboxes for each field to choose from. In your view, you can use
that list to dynamically only SELECT those fields from the database
(this step is not necessary, but it provides some extra performance
for cases where
hi,
My modes is :
class Company(models.Model):
name = models.CharField( maxlength=100)
met_by = models.CharField(null=True, maxlength=200)
primary_contact = models.IntegerField(null=True, blank=True)
business_overview = models.TextField(null=True, maxlength = 2000 )
2 matches
Mail list logo