Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
how to keep the FileField being unmodified ?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
hao he  
View profile  
 More options Nov 8, 1:54 pm
From: hao he <speed...@gmail.com>
Date: Sun, 8 Nov 2009 10:54:47 +0800
Local: Sun, Nov 8 2009 1:54 pm
Subject: how to keep the FileField being unmodified ?

I display a ModelForm.
if user edit the field, ModelForm.save() will save the edited field,and the
non-edited field keep its origin value.

but, FileField/ImageField do not act as that.
if users have not modified the FieldField,  it will be empty.

how to implement that?

thanks.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bayuadji  
View profile  
 More options Nov 8, 5:57 pm
From: Bayuadji <bayua...@gmail.com>
Date: Sun, 8 Nov 2009 01:57:15 -0500
Local: Sun, Nov 8 2009 5:57 pm
Subject: Re: how to keep the FileField being unmodified ?
Hi,

The easy way is to check in backend, if the filefield empty,
don't modified the value.

-djibon-

On Sat, Nov 7, 2009 at 9:54 PM, hao he <speed...@gmail.com> wrote:
> I display a ModelForm.
> if user edit the field, ModelForm.save() will save the edited field,and the
> non-edited field keep its origin value.

> but, FileField/ImageField do not act as that.
> if users have not modified the FieldField,  it will be empty.

> how to implement that?

> thanks.

--
--------------------------------------------------------------
http://www.tumbletooth.org
my linkedin profile : http://www.linkedin.com/in/bayuadji
--------------------------------------------------------------

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google