as_* helpers (e.g. as_p as_div) for display (read "not in a form")

2022-12-14 Thread Sam Brown
ate. Does anyone know of a non-form helper like as_p? Same question posted on stackoverflow here <https://stackoverflow.com/questions/74790679/django-as-p-method-equivalent-for-non-form-display-only-use-cases> Thanks, Sam Brown -- You received this message because you are subscribed to t

Re: Help deciding ORM VS raw SQL trade-off in Complex scenario

2024-07-14 Thread Sam Brown
Im sure there are performance metrics out there to prove the ORM will not be the bottleneck. But I’ve never seen it slow things down when I’ve employed a timer on operation Also, ive recently ran into some of the limitations of drf and am looking into moving to an api that can be less coupled with

Re: Postgres failure when trying to remove check constraint

2024-10-05 Thread Sam Brown
For this exact reason I always use `sqlmigrate` to get the auto generated sql statement (and the backwards sql) and put this statements in `forwards` and `backwards` functions. I then separate the db and state operations. I bet if you run `python manage.py sqlmigrate ` on the migrations that rem

Re: ORM Bug from extending the `Query` class

2024-10-16 Thread Sam Brown
This won’t solve your problem but tangentially I’ve made a custom field lookup for `relatedfield__neq=objectToExclude` See: https://docs.djangoproject.com/en/5.1/howto/custom-lookups/ On Tue, Oct 15, 2024 at 3:59 PM Ben Pearman wrote: > Hi all, > > We wrote some custom logic that extended the `

Re: Django security releases issued: 5.1.4, 5.0.10, and 4.2.17

2024-12-04 Thread Sam Brown
Heads up, I’m getting a bad link error. Anyone else? On Wed, Dec 4, 2024 at 9:37 AM Sarah Boyce wrote: > Details are available on the Django project weblog: > https://www.djangoproject.com/weblog/2024/dec/04/security-releases/ > > -- > You received this message because you are subscribed to the