Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,21 @@ admin.py
Changelist
----------

0.3.7 - added support for django 1.10, fix unique fieldset id
- 0.3.7.twisto.1
- fixed jquery path
- removed duplicated parts of forms-nested.css (by @PetrDlouhy)

0.3.6 - added support for django 1.9
- 0.3.7
- added support for django 1.10, fix unique fieldset id

0.3.5 - Removed deprecated methods and updated for Django 1.8/1.9
- 0.3.6
- added support for django 1.9

0.3.4 - added licence and updated for python 3
- 0.3.5
- Removed deprecated methods and updated for Django 1.8/1.9

0.3.3 - fixed bug where inlines without inlines would cause an error
- 0.3.4
- added licence and updated for python 3

- 0.3.3
- fixed bug where inlines without inlines would cause an error
24 changes: 17 additions & 7 deletions django_nested_inline.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: django-nested-inline
Version: 0.3.7
Version: 0.3.7.twisto.1
Summary: Recursive nesting of inline forms for Django Admin
Home-page: https://github.com/s-block/django-nested-inline
Author: Josh Rowe
Expand Down Expand Up @@ -31,6 +31,7 @@ Description: django-nested-inline
Add `nested_inline` to `INSTALLED_APPS`

models.py

from django.db import models

class TopLevel(models.Model):
Expand Down Expand Up @@ -87,15 +88,24 @@ Description: django-nested-inline
Changelist
----------

0.3.7 - added support for django 1.10, fix unique fieldset id

0.3.6 - added support for django 1.9
- 0.3.7.twisto.1
- fixed jquery path
- removed duplicated parts of forms-nested.css (by @PetrDlouhy)

- 0.3.7
- added support for django 1.10, fix unique fieldset id

- 0.3.6
- added support for django 1.9

0.3.5 - Removed deprecated methods and updated for Django 1.8/1.9
- 0.3.5
- Removed deprecated methods and updated for Django 1.8/1.9

0.3.4 - added licence and updated for python 3
- 0.3.4
- added licence and updated for python 3

0.3.3 - fixed bug where inlines without inlines would cause an error
- 0.3.3
- fixed bug where inlines without inlines would cause an error

Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Expand Down
2 changes: 1 addition & 1 deletion nested_inline/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = (0, 3, 7)
__version__ = (0, 3, 7, "twisto", 1)
13 changes: 8 additions & 5 deletions nested_inline/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,20 +348,23 @@ def change_view(self, request, object_id, form_url='', extra_context=None):
return self.render_change_form(request, context, change=True, obj=obj, form_url=form_url)



class NestedInline(InlineModelAdmin):
inlines = []
new_objects = []

@property
def media(self):
extra = '' if settings.DEBUG else '.min'
js = ['jquery%s.js' % extra, 'jquery.init.js', 'inlines-nested%s.js' % extra]
js = [
'admin/js/vendor/jquery/jquery%s.js' % extra,
'admin/js/jquery.init.js',
'admin/js/inlines-nested%s.js' % extra
]
if self.prepopulated_fields:
js.extend(['urlify.js', 'prepopulate%s.js' % extra])
js.extend(['admin/js/urlify.js', 'admin/js/prepopulate%s.js' % extra])
if self.filter_vertical or self.filter_horizontal:
js.extend(['SelectBox.js', 'SelectFilter2.js'])
return forms.Media(js=[static('admin/js/%s' % url) for url in js])
js.extend(['admin/js/SelectBox.js', 'admin/js/SelectFilter2.js'])
return forms.Media(js=js)

def get_inline_instances(self, request, obj=None):
inline_instances = []
Expand Down
Loading