Oh this worked out beautifully! Not sure why it hadn't occurred to me to call super().__init__ before hand. And manipulating self.fields was the farthest thing from my mind.
As for using ModelMultipleChoiceField - that's ultimately what I went with for the project, but I couldn't let go of why I couldn't figure this out. Lol
This is going to be handy in the future. I feel like I have leveled up!
Thanks a ton, Carles!
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CH2PR14MB391328ADA5F398BF81643C36C0DE0%40CH2PR14MB3913.namprd14.prod.outlook.com.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment