address mdoel admin
This commit is contained in:
@@ -52,3 +52,22 @@ from rest_framework_simplejwt.token_blacklist.models import BlacklistedToken, Ou
|
|||||||
# Unregister the BlacklistedToken and OutstandingToken models
|
# Unregister the BlacklistedToken and OutstandingToken models
|
||||||
admin.site.unregister(BlacklistedToken)
|
admin.site.unregister(BlacklistedToken)
|
||||||
admin.site.unregister(OutstandingToken)
|
admin.site.unregister(OutstandingToken)
|
||||||
|
|
||||||
|
|
||||||
|
@admin.register(UserAddressModel)
|
||||||
|
class AddressAdmin(ModelAdmin, ImportExportModelAdmin):
|
||||||
|
import_form_class = ImportForm
|
||||||
|
export_form_class = ExportForm
|
||||||
|
|
||||||
|
|
||||||
|
compressed_fields = True
|
||||||
|
warn_unsaved_form = True
|
||||||
|
|
||||||
|
formfield_overrides = {
|
||||||
|
models.TextField: {
|
||||||
|
"widget": WysiwygWidget,
|
||||||
|
},
|
||||||
|
ArrayField: {
|
||||||
|
"widget": ArrayWidget,
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user