Re: Custom field names in ModelForm

2012-05-10 Thread Bhashkar Sharma
Thanks for the reply Rajneesh, but I'm looking for a more scalable option. (Ideally I would like to write a wrapper of some kind which does the task regardless of which Model is it) My use case is that I'm using django-piston for building a REST API, which I tweaked to give me what I wanted (htt

Custom field names in ModelForm

2012-05-10 Thread Bhashkar Sharma
Is there a way to customize the field name (not just label) while creating a ModelForm? Eg. for the model: class Book(models.Model): title = models.CharField(max_length=256, db_index=True) author = models.CharField(max_length=512, db_index=True) published = models.DateTimeField(db_in