These are chat archives for django/django

Sep 2017
Sep 16 2017 02:01
@oguzhan-yilmaz thank you
Sep 16 2017 03:52
What is wrong?
    form = LoginForm(request.POST)
    login = form.login

class LoginForm(forms.Form):
    login = forms.CharField(required=True)

‎AttributeError: 'LoginForm' object has no attribute 'login'
Sep 16 2017 03:54
Phong Bui
Sep 16 2017 04:08
Massab Dubey
Sep 16 2017 06:35
Sep 16 2017 09:07
anyone online? I have a question on pre_save signal
Sep 16 2017 20:06
Are you able to send some kind of a .jar file so the client wont reuse my code?
Ahmet Paşa Tunç
Sep 16 2017 20:16
@SaturnTeam You should do it this way: form.fields['login']
Oğuzhan Yılmaz
Sep 16 2017 20:21
@odwrotnie research the cxFreeze
Sep 16 2017 20:33
@oguzhan-yilmaz thanks
Sep 16 2017 21:40 Hi, I to make a ModelForm for a model with ManyToMany field, but for the related model. It's the same as discussed here:
But the suggested solutions don't work and I don't understand them. Isn't there an easy way to do this?
Oğuzhan Yılmaz
Sep 16 2017 21:45
I would recommend that you don't make ModelForm, instead make forms.Form, So you can write every field. I had this problem with Profile model which wraps User model, but when I did ModelForm it just makes you select existing Users. So I wrote every field by hand, cleaned the data accordingly. @matrixbot
It's not that hard btw
Sep 16 2017 21:45 but it sounds hard ;)
White Rabbit
Sep 16 2017 22:44
Is it a good idea to use websockets for registration?
Oğuzhan Yılmaz
Sep 16 2017 23:45
I don't think so