Re: [mezzanine-users] How to hide product unavailable for purchase on the web page?

2015-02-04 Thread Danny
On 5/02/2015 4:27 PM, Wesley wrote: Hi guys, I have a question that,how to hide product with unavailable for purchase on the page? I see that, it's showing on the page, but only says no in stock when click into the detail product page. So, how to directly make it hidden from product list on

[mezzanine-users] How to hide product unavailable for purchase on the web page?

2015-02-04 Thread Wesley
Hi guys, I have a question that,how to hide product with unavailable for purchase on the page? I see that, it's showing on the page, but only says no in stock when click into the detail product page. So, how to directly make it hidden from product list on the page? I tried to select "draft"

Re: [mezzanine-users] Re: Cartrige custom shipping by country and product category

2015-02-04 Thread Wesley
Hi Josh, Thanks for your reply. Got that and I will try later on, Wesley You should be able to do that in the billship handler. You can see the > default here, > > https://bitbucket.org/stephenmcd/cartridge/src/57a56a41baf1b70789567a1d06b79a473e719a22/cartridge/shop/checkout.py?at=default#cl-

[mezzanine-users] Re: Alternate Fabfile for deploying to VPS

2015-02-04 Thread Eduardo Rivas
Hey Tomlin, thanks for your kind words, it's great to see the project being helpful. I've made important progress refactoring Mezzanine's default fabfile, I hope it'll be ready soon. I also have plans to make a screencast explaining the deployment of Mezzanine, as it is one of the common stumbl

Fwd: Re: [mezzanine-users] Foreign Key to Page Object - Controlling the dropdown text in Admin

2015-02-04 Thread Graham
Hi Josh I tried something based on this https://docs.djangoproject.com/en/1.6/ref/models/instances/ and it worked! Namely I changed __str__ to __unicode__ Not entirely sure why this worked but happy enough at this stage... Thanks for your help G Forwarded Message Subject: R

Re: [mezzanine-users] Foreign Key to Page Object - Controlling the dropdown text in Admin

2015-02-04 Thread Graham
Thanks Josh I think that I am missing something... I have put this code in the SoulClass def __str__(self): print "this should appear in the terminal if this method is being called" return self.title But nothing appears in the terminal and the behaviour I am trying to chan

Re: [mezzanine-users] Foreign Key to Page Object - Controlling the dropdown text in Admin

2015-02-04 Thread Josh Cartmell
You need to override the __str__ method on SoulPractictioner. Right now it is being inherited from Page, you can see that here, https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/pages/models.py#L54 On Wed, Feb 4, 2015 at 2:31 PM, Graham wrote: > Hi Josh > Here are the 2 models (sim

Re: [mezzanine-users] Foreign Key to Page Object - Controlling the dropdown text in Admin

2015-02-04 Thread Graham
Hi Josh Here are the 2 models (simplified to focus on issue) class SoulPractitioner(Page, RichText): pass class SoulClass(Displayable): practitioner = models.ForeignKey("SoulPractitioner") When I 'Add soul class' in the admin I get the option to select a foreign key to 'Soul Practition

Re: [mezzanine-users] Foreign Key to Page Object - Controlling the dropdown text in Admin

2015-02-04 Thread Josh Cartmell
Hey Graham, could you go into a bit more detail. Where is the dropdown? What do the models look like? On Wed, Feb 4, 2015 at 3:23 AM, Graham Oliver wrote: > Hi there > I have a foreign key to a Page Object. I want to be able to control the > text that appears on the drop down in the Admin. > I

[mezzanine-users] Re: Mezzanine Twitter - Urlencode string

2015-02-04 Thread hyan...@gmail.com
Hi Mezzaniners! I'm trying to poll twitter messages from a user account; but this error message appear: http://paste.ofcode.org/LxVcgnFPdFRDxKhZrvRQSB ¿What could I'm doing wrong? Thanks fopr your help! Humberto Yances -- You received this message because you are subscribed to the Google Gro

[mezzanine-users] Re: Alternate Fabfile for deploying to VPS

2015-02-04 Thread Tomlin
Just wanted to say that I've been using your mezzanine-webfaction fabfile and it's been incredibly helpful! Thanks. On Sunday, February 1, 2015 at 4:48:43 AM UTC+11, Eduardo Rivas wrote: > > Hello everybody. For the past few months I've been deploying my Mezzanine > sites with a modified Fabfile

[mezzanine-users] Problem with uploading files that have a question mark in the name

2015-02-04 Thread Tomlin
This is most likely an issue with FileBrowser but I'm mentioning it here in the hope that somebody might have had a similar issue or could possibly shed some light on this problem. A user recently had some difficulty with their site when they attempted to upload a file to the Media Library. Th

[mezzanine-users] Foreign Key to Page Object - Controlling the dropdown text in Admin

2015-02-04 Thread Graham Oliver
Hi there I have a foreign key to a Page Object. I want to be able to control the text that appears on the drop down in the Admin. I am guessing that I need to override ModelChoiceField like here http://stackoverflow.com/questions/6836740/django-admin-change-foreignkey-display-text However, I am a