I have a model with a FilePathField declared as follows: ftp_path = models.FilePathField(path=settings.BASE_SFTP_DIRECTORY, max_length=250, allow_files=False, recursive=True, allow_folders=True, blank=True)
In my save command I do the following to ensure it has content: if not self.ftp_path: self.ftp_path = settings.BASE_SFTP_DIRECTORY + self.slug + '/' The intent here is to store a path name to a directory where I can import files that have been pushed up via sftp. When I view my objects in the shell they have correct data in this field and refer to existing directories. When viewed in the Admin, however, I just see a bunch of dashes for their content with a drop down box offering no options. I cannot view or edit the FilePathField content in the Admin whatsoever. The resulting html that is generated looks like this: <div class="form-row field-ftp_path"> <div> <label for="id_ftp_path">Ftp path:</label> <select id="id_ftp_path" name="ftp_path"><option value=""> ---------</option></select> </div> </div> Kinda stuck about what I'm doing wrong here. Any ideas? thanx, -- Ben Scherrey -- Chief Systems Architect Proteus Technologies <http://proteus-tech.com> Chief Fan Biggest Fan Productions <http://biggestfan.net> Personal blog where I am not your demographic <http://notyourdemographic.com>. This email intended solely for those who have received it. If you have received this email by accident - well lucky you!! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHN%3D9D7jH4GAGBv42Ds1bmQdgHWAuLQ%2B7E0UvsYCjeKRMVynTg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.