Skip to content
This repository
Browse code

I'm anal about line length.

  • Loading branch information...
commit 7e2df605451db13d9fa43f80d3c6119d59be6401 1 parent f3f2cff
Dusty Phillips buchuki authored
3  greatbigcrane/project/models.py
@@ -26,7 +26,8 @@ class Project(models.Model):
26 26 name = models.CharField(max_length=32)
27 27 base_directory = models.CharField(max_length=512, unique=True)
28 28 git_repo = models.CharField(max_length=512, blank=True, default='')
29   - description = models.TextField(blank=True, help_text="(Markdown syntax is supported)")
  29 + description = models.TextField(blank=True,
  30 + help_text="(Markdown syntax is supported)")
30 31 updated_at = models.DateTimeField(auto_now=True)
31 32 created_at = models.DateTimeField(auto_now_add=True)
32 33 test_status = models.BooleanField(default=False)
13 greatbigcrane/project/views.py
@@ -40,7 +40,9 @@ def index(request):
40 40 favourite_projects = Project.objects.filter(favourite=True).order_by('name')
41 41 notifications = Notification.objects.exclude(dismissed=True)[:10]
42 42 return render_to_response('index.html', RequestContext(request,
43   - {'project_list': projects, 'favourite_project_list': favourite_projects, 'notifications': notifications}))
  43 + {'project_list': projects,
  44 + 'favourite_project_list': favourite_projects,
  45 + 'notifications': notifications}))
44 46
45 47 def about(request):
46 48 '''Also go to another app or flatpage...'''
@@ -49,13 +51,16 @@ def about(request):
49 51 def list_projects(request):
50 52 orderby = request.GET.get('orderby', 'name')
51 53 projects = Project.objects.all().order_by(orderby)
52   - return object_list(request, projects, template_name="project/project_list.html",
53   - template_object_name="project", extra_context={'orderby': orderby})
  54 + return object_list(request, projects,
  55 + template_name="project/project_list.html",
  56 + template_object_name="project",
  57 + extra_context={'orderby': orderby})
54 58
55 59 def view_project(request, project_id):
56 60 return object_detail(request, Project.objects.all(), object_id=project_id,
57 61 template_object_name='project', extra_context={
58   - 'notifications': Notification.objects.filter(project=project_id,dismissed=False)[:10]})
  62 + 'notifications': Notification.objects.filter(
  63 + project=project_id,dismissed=False)[:10]})
59 64
60 65 def add_project(request):
61 66 form = ProjectForm(request.POST or None)

0 comments on commit 7e2df60

Please sign in to comment.
Something went wrong with that request. Please try again.