Commit f737dc1d84eaa318473952107bbdea5f8fbd9843

Authored by Felipe Henrique de Almeida Bormann
1 parent 61117fa8

added pdf_file app to Project

pdf_file/__init__.py 0 → 100644
pdf_file/admin.py 0 → 100644
... ... @@ -0,0 +1,3 @@
  1 +from django.contrib import admin
  2 +
  3 +# Register your models here.
... ...
pdf_file/apps.py 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +from django.apps import AppConfig
  2 +
  3 +
  4 +class PdfFileConfig(AppConfig):
  5 + name = 'pdf_file'
... ...
pdf_file/migrations/__init__.py 0 → 100644
pdf_file/models.py 0 → 100644
... ... @@ -0,0 +1,3 @@
  1 +from django.db import models
  2 +
  3 +# Create your models here.
... ...
pdf_file/tests.py 0 → 100644
... ... @@ -0,0 +1,3 @@
  1 +from django.test import TestCase
  2 +
  3 +# Create your tests here.
... ...
pdf_file/views.py 0 → 100644
... ... @@ -0,0 +1,3 @@
  1 +from django.shortcuts import render
  2 +
  3 +# Create your views here.
... ...
subjects/views.py
... ... @@ -567,7 +567,7 @@ class SubjectSearchView(LoginRequiredMixin, LogMixin, ListView):
567 567  
568 568 subjects = Subject.objects.filter(q).distinct()
569 569 self.resources = Resource.objects.filter(q).distinct()
570   -
  570 +
571 571 self.totals = {'resources': self.resources.count(), 'my_subjects': subjects.count()}
572 572  
573 573 option = self.kwargs.get('option')
... ...