Re: And again about permission to view

2015-07-14 Thread Григорий Крамаренко
Then lost the meaning: it is to give the ability to set custom permissions for all third-party applications whose code is "not available". четверг, 9 июля 2015 г., 21:02:08 UTC+10 пользователь Tim Graham написал: > > Historically there's been pushback against adding new settings. That said, > I

Re: Django 1.9 - JSONField

2015-07-08 Thread Григорий Крамаренко
+1 I'm waiting too and hope for a positive decision. вторник, 7 июля 2015 г., 23:57:37 UTC+10 пользователь lza...@ucs.br написал: > > > Hi all, > > I'd like to know why this feature will be only available on postgres and > not as a Field for any database, like this product? This Field would be >

Re: And again about permission to view

2015-07-08 Thread Григорий Крамаренко
e): ... self.default_permissions = get_full_default_permissions() ... so, we killed two birds with one stone... ;) среда, 8 июля 2015 г., 18:02:47 UTC+10 пользователь Григорий Крамаренко написал: > > Another variant: > > # Add to conf.global_settings.py > &l

Re: And again about permission to view

2015-07-08 Thread Григорий Крамаренко
Another variant: # Add to conf.global_settings.py ... AUTH_DEFAULT_PERMISSIONS = ('add', 'change', 'delete') ... # And in db.models.options.py @python_2_unicode_compatible class Options(object): ... def __init__(self, meta, app_label=None): ... self.default_permissions

Re: And again about permission to view

2015-07-07 Thread Григорий Крамаренко
Whether I don't understand you, or you me. Permissions in the admin work on the principle of: access = is_stuff and True in (add_perm, change_perm, delete_perm) "view" absolutly not affect to the admin panel, just as do not affect to it other custom permissions. Take a look at this permission a

Re: And again about permission to view

2015-07-07 Thread Григорий Крамаренко
aid at the beginning - this change does not affect the admin panel. среда, 8 июля 2015 г., 0:54:52 UTC+10 пользователь Григорий Крамаренко написал: > > I look in the code admin.options.BaseModelAdmin.has_module_permission, who > regulates access to the admin. > Now any custom permissi

Re: And again about permission to view

2015-07-07 Thread Григорий Крамаренко
I look in the code admin.options.BaseModelAdmin.has_module_permission, who regulates access to the admin. Now any custom permission automatically makes read access to the admin area. So? среда, 8 июля 2015 г., 0:48:00 UTC+10 пользователь Григорий Крамаренко написал: > > Let's g

Re: And again about permission to view

2015-07-07 Thread Григорий Крамаренко
Let's get into the admin to check only three permissions in has_module_permissions. вторник, 7 июля 2015 г., 23:23:12 UTC+10 пользователь Tim Graham написал: > > Since the existing permissions are used in the admin, I don't think adding > a view permission that has no effect there would be very

And again about permission to view

2015-07-07 Thread Григорий Крамаренко
I understand that the topic was raised repeatedly. It's hard for me to read all the comments, because I badly know English. And I'm not going to talk about permission to view in the admin. I wrote the ticket , and Tim Graham forwarded me to this mail