Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

367
Vistas
Don’t forget to enter notes” - If they have not enter note by today and enter note the prior day

I have two tables Member table and Daily_Notes table.

class Member(models.Model):
    name = models.Charfield()

Daily_notes table

class DailyNotes(models.Model):
    member= models.Foreignkey('Member')
    note=models.Charfield()
    date=models.Datetimefield(default="")

Daily note table contains daily entries

I need to filter datas, If user have not enter note by today and entered the prior day.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

You can retrieve Members that have filled in a DailyNotes item the previous day and not the current day with:

from datetime import date, timedelta

Member.objects.filter(
    dailynotes__date__date=date.today() - timedelta(days=1)
).exclude(
    dailynotes__date__date=date.today()
)
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda