I have Orderdetail model in django. i want to attach multiple file with with each instance. I have following code.
class OrderDetail(models.Model):
company_name = models.CharField(max_length=100, blank=True, null=True)
created = models.DateTimeField(auto_now_add=True)
file = FilerFileField(on_delete=models.CASCADE, null=True, blank=True, related_name='sample_file')
and for admin.py
@admin.register(OrderDetail)
class OrderDetailAdmin(admin.ModelAdmin):
fieldsets = (
('OrderDetail', {'fields': (company_name','created', 'file')}),
)
its showing me some thing like this in orderdetial changepage but when i click upload file its pop with uploader window but from it does not pick file.Any one can help me.