From 509715ff2b13463cedf7407d98d9837d89fe46b5 Mon Sep 17 00:00:00 2001 From: Patricio Kumagae <pkumagae@boletinoficial.gob.ar> Date: Thu, 15 Aug 2019 10:33:19 -0300 Subject: [PATCH] =?UTF-8?q?Tarea=20#19703=20-=20Tambi=C3=A9n=20me=20pidier?= =?UTF-8?q?on=20sacar=20el=20=C3=ADcono=20Facebook=20del=20footer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/templates/footer.html | 5 ++--- frontend/views.py | 8 ++++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/frontend/templates/footer.html b/frontend/templates/footer.html index eabc952..7950404 100644 --- a/frontend/templates/footer.html +++ b/frontend/templates/footer.html @@ -17,8 +17,7 @@ You should have received a copy of the GNU General Public License along with thi <section> <h2>Redes Sociales</h2> <div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"> <ul> - <li><a href="https://www.facebook.com/bfa.ar" target="_blank"><i class="fab fa-facebook-f fa-2x" aria-hidden="true"></i><span - class="sr-only">Facebook</span></a></li> + <li><a href="https://www.twitter.com/bfa_ar" target="_blank"><i class="fab fa-twitter fa-2x" aria-hidden="true"></i><span class="sr-only">Twitter</span></a></li> <li><a href="https://www.instagram.com/bfa_ar" target="_blank"><i class="fab fa-instagram fa-2x" aria-hidden="true"></i><span @@ -43,4 +42,4 @@ You should have received a copy of the GNU General Public License along with thi <script src="{% static 'frontend/js/vendor/font-awesome531.js' %}"></script> <script src="{% static 'frontend/js/vendor/jquery.validate.js' %}"></script> -<script src="{% static 'frontend/js/main.js' %}"></script> \ No newline at end of file +<script src="{% static 'frontend/js/main.js' %}"></script> diff --git a/frontend/views.py b/frontend/views.py index 6ff5f89..59e1cd9 100644 --- a/frontend/views.py +++ b/frontend/views.py @@ -146,8 +146,12 @@ class AccountListView(LoginRequiredMixin, ListView): return context def get_queryset(self): - qs = CustomUserAccount.objects.filter(user=CustomUser.objects.get(user_id=self.request.user.id)) - return qs + + try: + qs = CustomUserAccount.objects.filter(user=CustomUser.objects.get(user_id=self.request.user.id)) + return qs + except CustomUser.DoesNotExist: + return None class AccountCreateView(LoginRequiredMixin, CreateView): -- GitLab