Commit bf7f6630 authored by Administrator's avatar Administrator

clean the code

parent 9287bcbe
......@@ -74,10 +74,11 @@ def projects(request):
return redirect('/login/?next=%s' % request.path)
t = get_template('projects.html')
user = request.user
project = NodeType.objects.get(name='Project')
date = datetime.datetime.now()
project = NodeType.objects.get(name='Project')
projects = Node.objects.filter(user=user, type_id = project.id).order_by("-date")
number = len(projects)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment