Re: How to prevent save/delete in the Admin

2015-03-29 Thread Julo
Maybe you can add an interface for the models that are importants and hook to the save/delete signal a interfaced function called CanSave() And you check the premisson he has, if not allowed rais an exception, and don't save. Sorry for the bad english. Saludos, Julian -Original Message-

Re: VIdeo Lectures ?

2014-10-06 Thread Julo
Godjango.com !! Really cool videos! -Original Message- From: rishabh yadav Sender: django-users@googlegroups.com Date: Mon, 6 Oct 2014 07:08:20 To: Reply-To: django-users@googlegroups.com Subject: VIdeo Lectures ? Can anyone of u

Best way of render differnt types of a Model

2014-09-17 Thread Julo Waks
understand is the ducktyping [3] and how it affects all this. Thank you very much in advance, regards, Julo [0] http://linkode.org/p39S0VryugbTFPXXhkVb94 [1] https://docs.python.org/2/library/abc.html [2] https://docs.python.org/2/reference/datamodel.html#object.__new__ [3] https://docs.python.org/2

Constants values and best practices

2014-08-28 Thread Julo Waks
Good day! How are you? I have the following situation: In more than one django project I come across the situation where I need to define a model that has a State. So what I usually do is: # Pseudo code here def State (models.Model): name = models.CharField () def Purchase (models.Model):

Re: Comments in real time

2014-08-22 Thread Julo
If you need to save the comments, take a look to django-angular. Its an integration of angularJS into django. Where you can save the model via javascript, i really recommend you Angular for this. -Original Message- From: Collin Anderson Sender:

Facebook permisson - django-allauth

2014-08-16 Thread Julo Waks
I have this problem, i am working in an app that uses django-allauth for login with facebook. When i ask for login i need to ask for publish_stream scope. In local environment this work great. In production does not. Does anyone have a clue? here my settings/base.py SOCIALACCOUNT_PROVIDERS = {