#28995: Reuse django admin list view for model as a many to many selector
-----------------------------------------+------------------------
               Reporter:  Dev Aggarwal   |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Component:  Uncategorized  |        Version:  2.0
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 Hello, I have some models defined like so

 {{{

 class Question(models.Model):
     ...
     question_image = models.ImageField(default='')

 class Exam(models.Model):
     ...
     questions = models.ManyToManyField(Question)
 }}}

 Now, I am looking for a way to make it more sensible to select questions
 in the Exam Admin

 Here is what I think should be pretty manageable

 1.
 Have a link to open a separate question selection page in Exam change
 Admin
 [[Image(https://i.imgur.com/XCR1kMr.png)]]

 2.
 Reuse this list view from Question's Admin
 [[Image(https://i.imgur.com/QaGz5VM.png)]]

 Since it already has checkbox and the images are displayed too,
 All i need is a Submit button and some JS after i have stripped it down to
 fit my needs.

 Can you please guide me on how i should properly reuse that question list
 view?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28995>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.0a3ef5d20a0c3c8641fa7b89bf32a85e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to