Re: get_FOO_display not working ?

2020-02-22 Thread Nde Nguti
CHOICES =(('draft', 'Draft'), ) On Sun, Feb 23, 2020, 05:48 Yves de Champlain wrote: > Hi > > I'm using StatusModel from models_utils : > > class MetaData(TimeStampedModel, StatusModel, SoftDeletableModel): > STATUS = Choices(('draft', _('Draft')), > ('submitted', _('Sub

Re: get_FOO_display not working ?

2020-02-22 Thread Nde Nguti
Try ('draft', 'Draft') not ('draft', ('Draft')) On Sun, Feb 23, 2020, 05:48 Yves de Champlain wrote: > Hi > > I'm using StatusModel from models_utils : > > class MetaData(TimeStampedModel, StatusModel, SoftDeletableModel): > STATUS = Choices(('draft', _('Draft')), > (

Re: Python Django Training

2020-02-22 Thread Nde Nguti
I am interested Srikanth. Nde ND. Tel: 00237 675079262 Cameroon. On Fri, Feb 21, 2020, 14:52 Irfan Khan wrote: > Hi > How you conducting the sessions and please add me into the group > > On Sat, 1 Feb 2020 at 7:12 PM, Srikanth K wrote: > >> Hi, >> >> I am from Hyderabad. I am Python Developer b

Re: Writing your first Django app, part 1 - Can't Follow it

2019-08-01 Thread Nde Nguti
Just out of curiosity, Python is case sensitive. The function names, 'path' and variable 'urlpatterns'. I have gone through the tutorials with no problem. On Thu, Aug 1, 2019, 11:04 Franck Tchouanga wrote: > Firstly in your mysite/mysite/URLs.py in the url patterns portion instead > type this >