Jurgis Pralgauskis

Results 13 comments of Jurgis Pralgauskis

seems, like assign'ing inside __init__ works (but not via class attribute -- which is now quite common (esp, with dataclass))

ps.: I'd expect `has_entry` to be as ``` def has_entry(key, value_match): return has_entries({key: value_match}) ```

I fiddled sth similar (`GroupPermissionObjects`) looking at `GroupObjectsPermission` https://gist.github.com/dz0/ca12e1f06754adcaaa38decba67e733e it's now for use as ordinary view, but can be "adapted" for admin (again, by analogy of `guardian.admin.GuardedModelAdminMixin#obj_perms_manage_group_view`)

ps.: maybe some ideas can be taken from https://github.com/Microdisseny/django-groupadmin-users as `save_m2m` instead of `save_obj_perms` -- don't know (as here we have 3 way many-to-many case)?

> What version of PyCharm are you using? PyCharm 2022.1.1 (Professional Edition) Build #PY-221.5591.52, built on May 10, 2022 on Ubuntu 20.04

maybe found a non-docker way (haven't tried) https://github.com/camptocamp/pytest-odoo/issues/31#issuecomment-489579074

I had a bit different idea -- to reuse the grid-world-problems -- but play/animate solution in some native py graphics engine (for example, wrapped around turtle) instead of wrapped around...

Hi, any progress on this? I could test :)

my workaround was to remove tz before calling :) ``` bt.businesstime_hours(start_dt.replace(tzinfo=None), end_dt.replace(tzinfo=None)) ```