2 Commits 168247b578 ... 6687f1c1ff

Author SHA1 Message Date
  Tomek Wójcik 6687f1c1ff Version bumped to `v1.0.1` 10 months ago
  Tomek Wójcik 1a22abe211 Fixed a bug that caused validation errors when saving change form. 10 months ago

+ 1 - 1
django_changelist_inline/__init__.py

@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-__version__ = '1.0.0'
+__version__ = '1.0.1'
 
 default_app_config = (
     'django_changelist_inline.apps.DjangoChangelistInlineConfig'

+ 9 - 0
django_changelist_inline/admin.py

@@ -90,6 +90,15 @@ class ChangelistInline(InlineModelAdmin):
         self.request = None
         self.changelist_model_admin = None
 
+    def has_add_permission(self, request, obj=None):
+        return False
+
+    def has_change_permission(self, request, obj=None):
+        return False
+
+    def has_delete_permission(self, request, obj=None):
+        return False
+
     def bind(self, request, parent_instance):
         internal_request = copy.copy(request)
         internal_request.GET = QueryDict(mutable=False)

+ 1 - 0
django_changelist_inline/templates/django_changelist_inline/changelist_inline.html

@@ -1,5 +1,6 @@
 {% load i18n admin_list %}
 
+{{ inline_admin_formset.formset.management_form }}
 {% with cl=inline_admin_formset.opts.changelist %}
   {% if cl %}
     <div class="module django_changelist_inline">

+ 1 - 1
setup.py

@@ -27,7 +27,7 @@ PACKAGES = find_packages(
 
 setup(
     name='django-changelist-inline',
-    version='1.0.0',
+    version='1.0.1',
     url='https://git.bthlabs.pl/tomekwojcik/django-changelist-inline',
     license='Other/Proprietary License',
     author='Tomek Wójcik',