Re: 2020 edition of core.files.storages.Storage.copy method

2020-09-02 Thread Lorenzo Peña
miércoles, 2 de septiembre de 2020 a las 11:31:07 UTC-4, Lorenzo Peña escribió: > Apologies for the lazy version. Let me elaborate a bit more :) > > From what I read, the blocker last time was a lack of a clear path in how > to handle a "file already exists" type of error. [1] &g

Re: 2020 edition of core.files.storages.Storage.copy method

2020-09-02 Thread Lorenzo Peña
e’s more chance of positive input that way. 🙂 > > Kind Regards, > > Carlton > > > On 2 Sep 2020, at 16:59, Lorenzo Peña wrote: > > Hi everyone! > > About providing an interface 'copy' method for file storages, is this > still no-go as of 2020? > >

2020 edition of core.files.storages.Storage.copy method

2020-09-02 Thread Lorenzo Peña
Hi everyone! About providing an interface 'copy' method for file storages, is this still no-go as of 2020? Background reading: - https://github.com/jschneier/django-storages/issues/428 - https://code.djangoproject.com/ticket/20488 - https://github.com/django/django/pull/4244 Thanks! -- You re

Re: Idea for Rollback Migration Rules

2020-07-04 Thread Lorenzo Peña
See if this solves part of the problem https://github.com/lorinkoz/django-unmigrate -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: Swappable sessions

2020-04-18 Thread Lorenzo Peña
; (so it could be stored as an attribute on SessionStore and thereby > available in create_model_instance()). Backwards compatibility would be > non-trivial and coupling the session store to the request seems unnecessary. > > On Wednesday, April 15, 2020 at 5:38:18 PM UTC-4, Lorenzo

Re: Swappable sessions

2020-04-15 Thread Lorenzo Peña
> On Wednesday, April 15, 2020 at 11:50:13 AM UTC-4, Lorenzo Peña wrote: >> >> Now, in order to follow the path suggested in the Django documentation >> for overriding database backed sessions, some of the data one might need to >> store in the session model is coming f

Re: Swappable sessions

2020-04-15 Thread Lorenzo Peña
On Wednesday, April 15, 2020 at 11:50:13 AM UTC-4, Lorenzo Peña wrote: >> >> Now, in order to follow the path suggested in the Django documentation >> for overriding database backed sessions, some of the data one might need to >> store in the session model is coming from th

Re: Swappable sessions

2020-04-15 Thread Lorenzo Peña
Now, in order to follow the path suggested in the Django documentation for overriding database backed sessions, some of the data one might need to store in the session model is coming from the request, and Django is not passing the request when instantiating the session store. Do you think ther

Re: Swappable sessions

2020-04-14 Thread Lorenzo Peña
Thanks Adam, looks like the link you posted covers it all. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-develope

Swappable sessions

2020-04-14 Thread Lorenzo Peña
Hello fellows! Has there ever been any discussion about making the Session model from django.contrib.sessions a swappable model? Sometimes it's required to enhance the session model in order to track more information. There are alternatives like django-user-sessions, but replacing the contrib s

Model managers and inheritance

2018-04-12 Thread Lorenzo Peña
Hello everyone! I know there must be a good reason to have managers outside of models and having the current rules for "manager inheritance" upon abstract/concrete model inheritance. However, there are legitimate cases where you want to use manager mixins (very much like model mixins) in order