On Tue, May 26, 2009 at 7:06 AM, Kenneth Gonsalves <law...@thenilgiris.com>wrote:
> > hi, > > I upgraded an app to the latest trunk. Please, whenever posting something like that, indicate from what you upgraded. At least approximately. Makes it far easier for responders to start looking in approximately the right place for what might explain the difference you are seeing. > In one model I have a filefield called > 'slides'. I have a Form for that model and in the view I have this code: > > if request.FILES: > > newtalk.save_slides_file(request.FILES['slides']['filename'], > request.FILES['slides']['content']) > I get an error saying 'save_slides_file' is unknown. How do I get this to > work? > I am sure this has been asked and answered, but a diligent search did not > yield any helpful result. Apparently you upgraded from something prior to 1.0. This entry: http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Removedseveralmoredeprecatedfeaturesfor1.0 in the backwards-incompatible list mentions removal of the deprecated save_FIELD_file, which is what you are using. If you click through to the changeset details you can see the deprecation warning it had, which indicates what it was replaced with, and what you should be using instead now. Karen --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---