These are chat archives for django/django

16th
Sep 2017
talk2shruthivs
@talk2shruthivs
Sep 16 2017 02:01
@oguzhan-yilmaz thank you
SaturnTeam
@SaturnTeam
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'
smphp
@smphp
Sep 16 2017 03:54
hello
Phong Bui
@loveunCG
Sep 16 2017 04:08
hello
Massab Dubey
@massabd
Sep 16 2017 06:35
hello
MilanRgm
@MilanRgm
Sep 16 2017 09:07
anyone online? I have a question on pre_save signal
Pawel
@odwrotnie
Sep 16 2017 20:06
Hi!
Are you able to send some kind of a .jar file so the client wont reuse my code?
Ahmet Paşa Tunç
@pasatuncc_twitter
Sep 16 2017 20:16
@SaturnTeam You should do it this way: form.fields['login']
Oğuzhan Yılmaz
@oguzhan-yilmaz
Sep 16 2017 20:21
@odwrotnie research the cxFreeze
Pawel
@odwrotnie
Sep 16 2017 20:33
@oguzhan-yilmaz thanks
matrixbot
@matrixbot
Sep 16 2017 21:40
@sedrubal:matrix.org Hi, I to make a ModelForm for a model with ManyToMany field, but for the related model. It's the same as discussed here: https://stackoverflow.com/questions/2216974/django-modelform-for-many-to-many-fields
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
@oguzhan-yilmaz
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
matrixbot
@matrixbot
Sep 16 2017 21:45
@sedrubal:matrix.org but it sounds hard ;)
White Rabbit
@Wahtdb_twitter
Sep 16 2017 22:44
Is it a good idea to use websockets for registration?
Oğuzhan Yılmaz
@oguzhan-yilmaz
Sep 16 2017 23:45
I don't think so