Skip to content

Commit

Permalink
admin iv version removed
Browse files Browse the repository at this point in the history
  • Loading branch information
jakosexy committed Dec 3, 2018
1 parent d563f37 commit 735f8cc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions music_publisher/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,7 @@ class TrackInline(admin.StackedInline):
used in :class:`AlbumCDAdmin`.
"""

import django
if django.VERSION >= (2, 1):
autocomplete_fields = ('work', 'artist')
else:
autocomplete_fields = ('artist', )
raw_id_fields = ('work', )
autocomplete_fields = ('work', 'artist')
fieldsets = (
(None, {
'fields': (
Expand Down

0 comments on commit 735f8cc

Please sign in to comment.