How in Django, made count objects in through model by condition, for using in the admin as sortable field?

2016-04-30 Thread Seti Volkylany
I need will create two sortable fields in Django admin by values in Though-Model. - My models.py from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ from django.db import models from

Re: Add id to url after login user

2016-04-30 Thread Dariusz Mysior
I have now code like below and I have message. I try split success_url with id number and compare it with urls.py AttributeError at /users/login/ > > 'int' object has no attribute 'get' > > views.py class LoginView(FormView): template_name = 'login_form.html' model = MysiteUser

Re: What is completed listing all formaters (fakers, providers) in FactoryBoy?

2016-04-30 Thread Seti Volkylany
I will ask a question easier. experimentally I found such worked providers of factoryboy: factory.Faker('name', locale='en') - generate random name factory.Faker('first_name', locale='en') - generate random first_name factory.Faker('last_name', locale='en') - generate random last_name

Re: Add id to url after login user

2016-04-30 Thread Michal Petrucha
On Fri, Apr 29, 2016 at 12:06:02PM -0700, Dariusz Mysior wrote: > Sory I thought that You are from Poland like I :) > > Hmm I try Your code but there is comment > > name 'request' is not defined It's hard to tell what's wrong without seeing the full traceback that you get with that error;

Re: New to Django (stuck at the end of the tutorial)

2016-04-30 Thread Aaron Poncé
Just a related/unrelated sidenote.. I'm also new to Django and I found an amazing tutorial series on youtube... Just wanted to share it with you: https://youtu.be/FNQxxpM1yOs?list=PLQVvvaa0QuDeA05ZouE4OzDYLHY-XH-Nd It's a 12 part series and it really helped me get the ball rolling On

Re: What is completed listing all formaters (fakers, providers) in FactoryBoy?

2016-04-30 Thread Gergely Polonkai
Looking at FactoryBoy’s documentation, it doesn’t seem you can use these; for example, slug is never mentioned in the documentation. What exactly do you want to achieve? Are you sure it’s FactoryBoy you are looking for? Gergely Polonkai [image: https://]about.me/gergely.polonkai

What is completed listing all formaters (fakers, providers) in FactoryBoy?

2016-04-30 Thread Seti Volkylany
I mean the factory.Faker('*name*', locale='en'), and I found slug, name, first_name, last_name, time, date, url, but I am don`t found all list in Web and factoryboy`s documentation. May anyone known? Thanks. -- You received this message because you are subscribed to the Google Groups