from django . contrib import admin
from django . contrib . auth import get_user_model
from . models import Product , Address , Order , Purchase , Category
from . forms CustomerAdmin
admin . site . register ( Category )
admin . site . register ( Product )
admin . site . register ( Address )
admin . site . register ( Order )
admin . site . register ( Purchase )
try :
    admin . site . unregister ( get_user_model ( ) )
finally :
    admin . site . register ( get_user_model ( ) , CustomerAdmin )

from django . contrib import admin
from django . contrib . auth import get_user_model
from . models import Product , Address , Order , Purchase , Category
from . forms import CustomerAdmin
admin . site . register ( Category )
admin . site . register ( Product )
admin . site . register ( Address )
admin . site . register ( Order )
admin . site . register ( Purchase )
try :
    admin . site . unregister ( get_user_model ( ) )
finally :
    admin . site . register ( get_user_model ( ) , CustomerAdmin )

次に示すpythonコードの誤りを修正しなさい。