You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 12, 2020. It is now read-only.
How can I connect this model to my model. My model
class Order(models.Model):
title = models.CharField(max_length=200)
born = models.DateTimeField(default=timezone.now)
user = models.ForeignKey(User)
email = models.EmailField()
files = models.ForeignKey(Picture)
I have a form of adding order:
class AddOrderForm(forms.ModelForm):
class Meta:
model = Order
fields = 'all'
widgets = {
'body': TinyMCE(attrs={'cols': 80, 'rows': 20}),
}
How to realize adding files to the order add page ?