Quantcast
Channel: How to split render django's ModelMultipleChoiceField in template file? - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by moberley for How to split render django's ModelMultipleChoiceField...

You're getting a not iterable error because ListEditForm.songs is a single field that contains a list of song choices, rather than a list of individual song fields. From your description I'm not sure...

View Article



How to split render django's ModelMultipleChoiceField in template file?

I want to make (ordered) Song list form.models.pyclass Song(models.Model): title = models.CharField(max_length=60)class List(models.Model): title = models.CharField(max_length=100) songs =...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>