Skip to content

Commit

Permalink
added back a bunch of useful stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jsayles committed Jun 21, 2017
1 parent 386cc50 commit e0a97ad
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion jlstest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
from nadine.models import *
from datetime import datetime, timedelta, date
from dateutil.relativedelta import relativedelta

from django.contrib.auth.models import User
from django.utils.timezone import localtime, now
from django.db.models import Q, Count, Sum, Value
from django.db.models.functions import Coalesce

from nadine.models import *

today = localtime(now()).date()
yesterday = today - timedelta(days=1)
tomorrow = today + timedelta(days=1)
one_month_from_now = today + relativedelta(months=1)
one_month_ago = today - relativedelta(months=1)
two_months_ago = today - relativedelta(months=2)

target_date = today

jacob = User.objects.get(username='jacob')
j = jacob
user = jacob

on = Organization.objects.get(name="Office Nomads")

0 comments on commit e0a97ad

Please sign in to comment.