Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cann't upload files use quickform. #47

Open
lulupy opened this issue Jul 31, 2013 · 2 comments
Open

Cann't upload files use quickform. #47

lulupy opened this issue Jul 31, 2013 · 2 comments
Assignees
Milestone

Comments

@lulupy
Copy link

lulupy commented Jul 31, 2013

models:

class Collect(models.Model):
user = models.ForeignKey(User)
wine = models.ForeignKey(Wine)
class User(models.Model):
nickname = models.CharField(max_length=50)
img = models.ImageField(upload_to='')

在xadmin中,如果我在Collect的CreateFormView界面中添加user,因为user包含图片字段,而xadmin的插件quickform在弹出的dialog中表单提交的方式是ajax,所以图书会上传不上去.

@sshwsfc
Copy link
Owner

sshwsfc commented Aug 28, 2013

需要用到jquery-ajax-upload插件了。

jquery-ajax-upload needed.

@ghost ghost assigned sshwsfc Aug 29, 2013
nbsky pushed a commit to nbsky/xadmin that referenced this issue Aug 2, 2016
nbsky pushed a commit to nbsky/xadmin that referenced this issue Aug 2, 2016
@qq854051086
Copy link

@lulupy 您好,请问这个问题您是怎么解决的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants