Commit 9eb5394b authored by jocelyn's avatar jocelyn

pep8, formatting…

parent b6638572
......@@ -166,9 +166,8 @@ INSTALLED_APPS = (
# Uncomment the next line to enable admin documentation:
#'django.contrib.admindocs',
'polymorphic',
# 'south',
'autocomplete_light', #Automagic autocomplete foreingkey form component
'activelink', #Detect if a link match actual page
'autocomplete_light', # Automagic autocomplete foreingkey form component
'activelink', # Detect if a link match actual page
'compat',
'hijack',
'django_extensions',
......
......@@ -230,8 +230,10 @@ class LoanInline(admin.TabularInline):
def has_delete_permission(self, request, obj=None):
return False
class MemberAdmin(coin.members.admin.MemberAdmin):
inlines = coin.members.admin.MemberAdmin.inlines + [LoanInline]
admin.site.unregister(coin.members.admin.Member)
admin.site.register(coin.members.admin.Member, MemberAdmin)
......@@ -162,7 +162,6 @@ class Loan(models.Model):
def get_mac_and_serial(self):
return self.item.get_mac_and_serial()
get_mac_and_serial.short_description = "Adresse MAC / n° de série"
def short_date(self):
......
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