My client would like to be able to upload invoices via the admin
interface. There's a customer model, and I've created another related
model (Invoice), which I've set to edit_inline and associated via
foreign key to the Customer model.

The client may or may not have an invoice to upload.

So far, my Invoice model looks like this:

----------
class Invoice(models.Model):

    customer = models.ForeignKey(Customer, edit_inline=models.STACKED,
num_in_admin=4)

    invoice = models.FileField(upload_to='invoices', core=True)
----------

Which displays great in the Admin interface. I'm able to save Customers
without adding invoices, which is perfect.

The problem arises when the I try to upload an invoice. Nothing
happens...

No error is displayed, but no file is uploaded.

Has anyone encountered this and found a solution, or can point out
where I'm mistaken?

Thanks,
Dave Worley


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to