Re: Models of Speedy Net

2016-08-18 Thread Uri Even-Chen
Thank you Asad and Avraham! *Uri Even-Chen* [image: photo] Phone: +972-54-3995700 Email: u...@speedy.net Website: http://www.speedysoftware.com/uri/en/

Re: Models of Speedy Net

2016-08-18 Thread Avraham Serour
It doesn't matter, you should decide on something and stick to it, consistency is more important than some suggestion you read somewhere. What your suggested seems fair, write on your documentation that you decided this and ask politely for contributions to follow this style On Aug 18, 2016 3:08

Re: Models of Speedy Net

2016-08-18 Thread Asad Jibran Ahmed
Sorry, I just checked and I'm wrong about the ordering of elements in a class. The reason the constants need to be first is because you are using them when defining your fields. But other than that, the order doesn't matter. Here's the code that I used to check this: def get_const(): print

Re: Models of Speedy Net

2016-08-18 Thread Asad Jibran Ahmed
The ordering of your attributes and methods inside the model class doesn't have to do with Django, it has to do with Python. Inside a class, the ordering doesn't matter as far as I understand. All of these documents you will find are thus just conventions to follow. You could come up with your

Re: Models of Speedy Net

2016-08-18 Thread Uri Even-Chen
By the way, I found this document and I changed the order of elements in our models accordingly. But what about def __init__? And this document is for Django developers, what about Django users? Is there anoth

Models of Speedy Net

2016-08-18 Thread Uri Even-Chen
To django-users, We are developing Speedy Net, a new social networks with apps (Speedy Match and Speedy Composer). Speedy Net is using Django (the previous version is written in PHP). I would like to ask you about the models, in https://github.com/urievenchen/speedy-net/blob/master/speedy/net/acco