Re: [Django] #20343: Model save() method needs a way to tell if a file upload occurred

2013-05-03 Thread Django
#20343: Model save() method needs a way to tell if a file upload occurred
---+--
 Reporter:  ewoudenberg|Owner:  nobody
 Type:  Uncategorized  |   Status:  closed
Component:  Uncategorized  |  Version:  1.4
 Severity:  Normal |   Resolution:  needsinfo
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--
Changes (by ptone):

 * status:  new => closed
 * resolution:   => needsinfo


Comment:

 Given the range of things that one may choose to do or not do when a file
 is or is not attached, how could Django provide a standard hook for
 something like this.

 This could be part of model validation - but currently is probably best
 handled by the form class that is receiving the file upload, that is where
 the "just occurred" part of the file upload is most clear.

 I'm closing this as needsinfo for now - as it sounds to me like something
 that can be done currently, but you are hoping Django would do for you,
 but what is not articulated is what the common/universal need is, such
 that it be added to the framework itself.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20343: Model save() method needs a way to tell if a file upload occurred

2013-05-02 Thread Django
#20343: Model save() method needs a way to tell if a file upload occurred
---+--
 Reporter:  ewoudenberg|Owner:  nobody
 Type:  Uncategorized  |   Status:  new
Component:  Uncategorized  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--
Changes (by eaw@…):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Django] #20343: Model save() method needs a way to tell if a file upload occurred

2013-05-02 Thread Django
#20343: Model save() method needs a way to tell if a file upload occurred
---+
 Reporter:  ewoudenberg|  Owner:  nobody
 Type:  Uncategorized  | Status:  new
Component:  Uncategorized  |Version:  1.4
 Severity:  Normal |   Keywords:
 Triage Stage:  Unreviewed |  Has patch:  0
Easy pickings:  0  |  UI/UX:  0
---+
 This concerns editing objects from Django's admin interface that have
 FileFields.

 Django's FileField handles uploading conveniently, but as far as I can
 tell does not allow you to determine in the save() method whether a file
 upload has just occurred, or whether instead no upload has occurred and
 the object is simply being saved with the previously used filename.

 It would be nice if the FieldFile object provided some indicator that a
 file has been uploaded with the form.

 In my case I need to do once-only processing on newly uploaded files and
 so need to know when uploads happen.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.