Hey there again.

I have a question, lets say that I have this model:

class Users(models.Model):
    email = models.CharField(primary_key=True, maxlength=240)
    password = models.CharField(maxlength=60)
    name = models.CharField(blank=True, maxlength=150)
    description = models.CharField(blank=True, maxlength=765)
    quota = models.IntegerField(null=True, blank=True)

If I want to be able to get the data of the current user I'd like to modify,
all I have to do is just get that data from a QuerySet into
form_for_instance and voila, it makes automatically the fields and
everything is in place to be modified but, what if I wanted to modify let's
say, just "description" without making the form class again and assigning
it's values from another query? I'd be braking the DRY rule. What I want
could be, to just show the data in disabled text inputs and just change
descripton. What would be the best and most efficient way to do it?

Thans for your help as usual
jhv

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to