Re: Erro em uma consulta Sqlite3

2022-08-04 Thread Alvaro Teixeira Silva
Bom dia meu amigo muito obrigado pela ajuda, foi um erro muito óbvio mas é isso mesmo, valeu pela ajuda! comunidade foda! Em qui., 4 de ago. de 2022 às 07:34, Joel Goldstick < joel.goldst...@gmail.com> escreveu: > On Thu, Aug 4, 2022 at 6:21 AM Luciano Martins wrote: > > > > É annotate > >

Re: Erro em uma consulta Sqlite3

2022-08-04 Thread Joel Goldstick
On Thu, Aug 4, 2022 at 6:21 AM Luciano Martins wrote: > > É annotate > Publisher.objects.annotate(below_5=below_5).annotate(above_5=above_5) > Em quarta-feira, 3 de agosto de 2022 às 19:31:18 UTC-3, > alvaroteixe...@gmail.com escreveu: >> >> Bom dia amigos, estou desenvolvendo um blog e me

Re: Erro em uma consulta Sqlite3

2022-08-04 Thread Luciano Martins
É *annotate* Publisher.objects.annotate(below_5=below_5).annotate(above_5=above_5) Em quarta-feira, 3 de agosto de 2022 às 19:31:18 UTC-3, alvaroteixe...@gmail.com escreveu: > Bom dia amigos, estou desenvolvendo um blog e me deparei com um erro em > uma consulta, vou mandar o trecho do codigo

Re: Customize serializer errors with incorrect data

2022-08-04 Thread Ammar Mohammed
Hello Sencer You can add cuatom functions to your serializer to return the data with the zerializer . For example you can add : def email_serializer(email): if !email.endswith("gmail.com"): raise SerializerError("Error wrong email address : ", email) This is just an example your

Re: Potential admin bug

2022-08-04 Thread Fab
Also when editing an item that has already been created "modelName" is undefined so the submit buttons don't get overridden: https://github.com/django/django/blob/main/django/contrib/admin/static/admin/js/change_form.js#L8 So works when editing, but not when adding a new item. On Thursday, 4

Re: Customize serializer errors with incorrect data

2022-08-04 Thread Sencer Hamarat
Hello again, For anyone interested, more detailed version was sent to stackoverflow: https://stackoverflow.com/questions/73231297/proper-way-to-return-erroneous-data-with-serializer-error Kind regards, Sencer HAMARAT On Wed, Aug 3, 2022 at 7:58 AM Sencer Hamarat wrote: > Hi, > > I found a

Re: Potential admin bug

2022-08-04 Thread Fab
Looks like "_addanother" isn't in the request.POST: https://github.com/django/django/blob/main/django/contrib/admin/options.py#L1388 The name on the input isn't being passed with the form submit:

Re: Combine Existing React App with Existing Django App

2022-08-04 Thread Lalit Suthar
you can watch this https://www.youtube.com/watch?v=w8SQ8beafiQ On Thu, 4 Aug 2022 at 06:09, Abdul Qoyyuum wrote: > Yes it can be done. Django to provide API endpoints. React app to connect > to those API endpoints. > > Abdul Qoyyuum Bin Haji Abdul Kadir > System Engineer at Card Access Services