diff --git a/frontend/templates/footer.html b/frontend/templates/footer.html index eabc9528cc33112ca818b7722b4397d8f90ca2c5..7950404f9d868972d3861a3c52f049a6529add81 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 6ff5f893ea6083d8079925bcbae680367d98e800..59e1cd98554503f5cb4501367fc58a8702934e7f 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):