Thanks, Josh. I think I understand. The Django documentation assumes that I'll be creating my own ModelForm class, but I'd imagine that in Mezzanine I'd want to use the existing mezzanine.accounts.ProfileForm class. So how do I tell the ProfileForm class to use my widget for my MyProfile class field?
On Thursday, October 2, 2014 10:29:50 AM UTC-4, Josh Cartmell wrote: > > Hey Joel, there is nothing specific in Mezzanine that will help you > accomplish that. What you will need to do is create a custom widget for > the field (or find one somewhere that does what you want). Here is the > Django documentation on widgets: > > https://docs.djangoproject.com/en/1.7/ref/forms/widgets > > On Wed, Oct 1, 2014 at 1:15 PM, Joel Gwynn <[email protected] <javascript:> > > wrote: > >> On Wednesday, October 1, 2014 12:05:54 PM UTC-4, Joel Gwynn wrote: >>> >>> I'm just starting out with Mezzanine, and I'd like to know what's the >>> mezzanine way to add an auto-complete input to the user profile page. I've >>> extended the user profile with a OneToOneField, and I'd like to add an >>> auto-suggest input on the user's profile management page. >>> >>> >> Sorry, I should have said, it's a ManyToManyField, and I want to replace >> the multi-select with an auto-complete text field. >> >> >>> TIA, >>> Joel >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Mezzanine Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
