Commit 34dea002 authored by Robert's avatar Robert

Fixed delete urls

parent 0f9cf017
......@@ -3,6 +3,7 @@ from django.utils.timezone import now
import core
import features
from features.associations.views import AssociationMixin
from . import models
......@@ -47,9 +48,7 @@ class ContributionFormMixin(django.views.generic.edit.FormMixin):
return self.object.get_absolute_url()
class Delete(
features.associations.views.AssociationMixin, core.views.PermissionMixin,
django.views.generic.UpdateView):
class Delete(AssociationMixin, core.views.PermissionMixin, django.views.generic.UpdateView):
permission_required = 'contributions.delete'
model = models.Contribution
fields = []
......
......@@ -6,7 +6,6 @@ urlpatterns = [
urls.url(r'^stadt/admin/', admin.site.urls),
urls.url(r'^stadt/api/', urls.include('core.api_urls')),
urls.url(r'^stadt/', urls.include('features.associations.urls')),
urls.url(r'^stadt/', urls.include('features.conversations.urls')),
urls.url(r'^stadt/', urls.include('features.memberships.urls')),
urls.url(r'^stadt/', urls.include('features.sharing.urls')),
......@@ -26,5 +25,6 @@ urlpatterns = [
urls.url(r'^', urls.include('features.tags.urls')),
# matches */*/
urls.url(r'^', urls.include('features.associations.urls')),
urls.url(r'^', urls.include('features.content.urls')),
] + static.static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment