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
This email intended solely for those who have received it. If you have received this email by accident - well lucky you!!