I have installed Django on two WinXP machines and created
similar test
applications on both. The model for the application
"notes" contains
the class "Note", and the class
"Attachment", as shown below:
class Note(meta.Model):
note_text = meta.TextField('text')
class META:
admin = meta.Admin()
def __repr__(self):
return self.note_text
class Attachment(meta.Model):
note = meta.ForeignKey(Note, verbose_name="the
note",
edit_inline=meta.TABULAR, num_in_admin=3)
Att_file = meta.FileField('file', upload_to =
'dump', core=True)
MEDIA_ROOT is set, and I can create a new note in the admin
and attach
a file, which ends up where it should. However, if I open
the note
again in the admin, and select "Save" without
changing anything, I get
the message "Please correct the errors below",
with the file field
highlighted. The message persists even if I select a new
file to be
uploaded. What have I done wrong?
Best regards
Martin
--~--~---------~--~----~------------~-------~--~----~
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-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
|