from kavyarnya trac models import Ticket from kavyarnya projects model

1
2
3
4
5
6
7
from kavyarnya.trac.models import Ticket
from kavyarnya.projects.models import Project
project = Project.objects.filter(slug='kavyarnya')
t1412 = Ticket.objects.filter(pk=1412,project=project)
t65 = Ticket.objects.get(pk=65,project=project)
print t1412, t1412[0].estimatedhours, type(t1412[0].estimatedhours)
print t65, t65[0].estimatedhours, type(t65[0].estimatedhours)