I've got a model that has the following code:
class PhillyCheese(models.Model):
description = models.CharField(blank=True, max_length=255)
quality = models.CharField(blank=True, max_length=255)
packing_date = models.DateField(blank=True, null=True)
shipping_date = models.DateField(blank=True, null=True)
taste = models.CharField(blank=True, max_length=255)
and a form:
class PhillyCheeseForm(forms.ModelForm):
class Meta:
model = PhillyCheese
I'm attempting to apply a jquery datepicker to the two DateFields in the model. Only thing is, I would like to be precise on which field it goes to. Modifying the template is not an option; I have many other possible forms that are rendered through that template.
Could anybody please show me how to add a custom id/class/name so I can accurately identify the DateFields using Jquery?