How to Process Multi Step Forms in Django?

2015-05-01 Thread Ken Nguyen
I've made some attempted to use formwizard but there wasn't much documentation about it so I decided to stay with the basic. I've successfully obtained and display the data from the first form to the second form and added some checkbox next to the data to allow user to choose whether to

Re: Template syntax issues w dict

2015-05-01 Thread Lachlan Musicman
.items Damn. Thanks On May 1, 2015 17:48, "ADEWALE ADISA" wrote: > If I can understand your code, of seems you want a table of : Institution > | Number of attendees > So if am right u can achive it this way : > > {% for org, num in attendees_per_org.items() %} >

[ANNOUNCE] Django bugfix releases issued: 1.8.1 and 1.7.8

2015-05-01 Thread Tim Graham
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2015/may/01/bugfix-releases-issued/ -- 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

Django admin does not show value of datetime field till seconds/miliseconds

2015-05-01 Thread Ankit Agrawal
Hi everyone, I have a model which has a datetime field. In the django admin, the value is shown only till minutes. How can it be configured to display the value in second/milisecond?

Re: The best way to mock querysets

2015-05-01 Thread Javier Guerra Giraldez
On Fri, May 1, 2015 at 5:17 AM, Avraham Serour wrote: > In my opinion you shouldn't, you should set the test data and make a real > query then compare results, you shouldn't care how the function got the > data, but that it got it correctly. that's part of a much bigger

DRF - Which Authentication to use?

2015-05-01 Thread Nabeel Valapra
I have prior experience in Django. Recently I got a project to build in REST architecture. I learned the basics of Django Rest Framework. But I am stuck with the authentication system. I planned serve my frontend in anguarjs an host it on app.mydomain.com, and the DRF on api.mydomain.com. So

Re: The best way to mock querysets

2015-05-01 Thread Avraham Serour
It seems correct, but the question is if you should do it. In my opinion you shouldn't, you should set the test data and make a real query then compare results, you shouldn't care how the function got the data, but that it got it correctly. let's say tomorrow you add a prefetch_related to your

Re: Template syntax issues w dict

2015-05-01 Thread ADEWALE ADISA
If I can understand your code, of seems you want a table of : Institution | Number of attendees So if am right u can achive it this way : {% for org, num in attendees_per_org.items() %} {{ org }} {{ num }} {% endfor %} Since your

Template syntax issues w dict

2015-05-01 Thread Lachlan Musicman
Hola, Django shell gives right results, template doesn't: code here http://dpaste.com/1NJEKD8 What am I doing wrong? L. -- 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

Re: Question on auto-generating username while using django registration

2015-05-01 Thread Babatunde Akinyanmi
Yes it is and very easy. Create a form without a username field and do something like this: def autogenerate_username (): # some logic new_user=User.objects.create_user(autogenerate_username (), self.cleaned_data['email'],