diff --git a/lacommunaute/event/tests/tests_views.py b/lacommunaute/event/tests/tests_views.py index b58c1af95..6f9f926a8 100644 --- a/lacommunaute/event/tests/tests_views.py +++ b/lacommunaute/event/tests/tests_views.py @@ -11,7 +11,6 @@ from lacommunaute.event.forms import EventModelForm from lacommunaute.event.models import Event from lacommunaute.users.factories import UserFactory -from lacommunaute.utils.templatetags.str_filters import inclusion_connect_url faker = Faker() @@ -234,8 +233,4 @@ class calendar_test(TestCase): def test_template(self): response = self.client.get(reverse("event:calendar")) self.assertTemplateUsed(response, "event/event_calendar.html") - self.assertContains(response, inclusion_connect_url(reverse("event:create"))) - - self.client.force_login(UserFactory()) - response = self.client.get(reverse("event:calendar")) self.assertContains(response, reverse("event:create")) diff --git a/lacommunaute/event/views.py b/lacommunaute/event/views.py index 8f6e3a863..b40703323 100644 --- a/lacommunaute/event/views.py +++ b/lacommunaute/event/views.py @@ -99,4 +99,4 @@ def calendar_data(request): def calendar(request): - return TemplateResponse(request, "event/event_calendar.html", {"next_url": reverse("event:create")}) + return TemplateResponse(request, "event/event_calendar.html") diff --git a/lacommunaute/templates/event/event_calendar.html b/lacommunaute/templates/event/event_calendar.html index 021da39ac..5e23a5ef0 100644 --- a/lacommunaute/templates/event/event_calendar.html +++ b/lacommunaute/templates/event/event_calendar.html @@ -31,16 +31,10 @@