Sorry for the long delay. I got distracted from this project for a bit. I'm trying to use the default Django way to make a Profile described at http://docs.djangoproject.com/en/dev/topics/auth/#auth-profiles but I'm running into issues regarding the AUTH_PROFILE_MODULE. In short, what do I do with it?
I've tried associating my Profile with both the User model and Satchmo's Contact model and switched the AUTH_PROFILE_MODULE from contact.Contact to myApp.myProfile to no avail. With AUTH_PROFILE_MODULE = "contact.Contact" user.getProfile().myExtendedAttributes don't work. And the whole store gets borked when AUTH_PROFILE_MODULE = "myApp.myModel" because user.getProfile().satchmosContactAttributes are broken. Thanks again for your help On Tue, Aug 11, 2009 at 10:52 AM, Nathan Ekstrom <[email protected]>wrote: > I'd say it all depends on how you want to access the data. Do you want to > go through the contact model or the user model? Associating with the User > model should make it more portable though, if you ever wanted to use code > from it in a non Satchmo environment. > > > On Tue, Aug 11, 2009 at 6:52 AM, Seth Boyd <[email protected]> wrote: > >> Thanks for your responses. I have one last question. Is there any >> benefit to associating my custom information with satchmo's contact model >> over django's user model or vice versa? >> >> Thanks again, >> Seth >> >> On Tue, Aug 11, 2009 at 2:42 AM, Carlos Perelló Marín <[email protected]>wrote: >> >>> >>> Nathan Ekstrom escribió: >>> > I believe he said User model not product model. As to extending the >>> > user model I don't know that there is a preferred method. Probably >>> > the best way so as not to mess with Satchmo too much would be to >>> > create a 1-to-1 field linking a new model to the user model. Then >>> > when you need to access your custom fields you just need to do >>> > user.<custom_model>.field >>> >>> Which is exactly the method explained in the document about extending >>> the product model... >>> >>> Cheers. >>> >>> > >>> > Nathan >>> > >>> > On Mon, Aug 10, 2009 at 2:18 AM, Juanjo <[email protected] >>> > <mailto:[email protected]>> wrote: >>> > >>> > >>> > Follow the documentation: >>> > >>> > http://www.satchmoproject.com/docs/svn/custom-product.html >>> > >>> > Then, if you want your extension class to show in the admin with >>> the >>> > regular product admin interface, check this on my site: >>> > >>> > >>> http://juanjoalvarez.net/es/detail/2009/jul/27/why-bad-idea-tm-override-product-model-satchmo/ >>> > >>> > >>> > >>> > On Aug 9, 11:50 pm, Seth <[email protected] >>> > <mailto:[email protected]>> wrote: >>> > > What is the preferred to extend the user model? I need to store >>> > more >>> > > information about the customer than satchmo does by default. >>> > >>> > >>> > >>> > > >>> >>> >>> -- >>> Carlos Perelló Marín >>> [P+] SERVICIOS PROFESIONALES >>> http://www.pemas.es >>> mailto:[email protected] || mailto:[email protected] >>> >>> Este mensaje y los ficheros anexos son confidenciales. Los mismos >>> contienen información reservada de la empresa que no puede ser >>> difundida. Si usted ha recibido este correo por error, tenga la >>> amabilidad de eliminarlo de su sistema y avisar al remitente mediante >>> reenvío a su dirección electrónica; no deberá copiar el mensaje ni >>> divulgar su contenido a ninguna persona. >>> >>> Su dirección de correo electrónico junto a sus datos personales forman >>> parte de un fichero titularidad de PEMAS Servicios Profesionales, S.L. >>> cuya finalidad es la de mantener el contacto con Ud. De acuerdo con la >>> Ley Orgánica 15/1999, usted puede ejercitar sus derechos de acceso, >>> rectificación, cancelación y, en su caso, oposición enviando una >>> solicitud por escrito, acompañada de una fotocopia de su DNI dirigida a >>> PEMAS Servicios Profesionales, S.L. C/ Santos Justo y Pastor, 72 - 5, >>> C.P. 46022 de Valencia (España). >>> >>> >>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en -~----------~----~----~----~------~----~------~--~---
