✅(tests) fix tests after adding slugs to domains
- slug readonly on admin - fix test to expect slug in payload, when retrieving a domain
This commit is contained in:
committed by
Sebastien Nobour
parent
93d4abee58
commit
19c36eafde
@@ -14,9 +14,10 @@ class MailDomainAdmin(admin.ModelAdmin):
|
||||
"name",
|
||||
"created_at",
|
||||
"updated_at",
|
||||
"slug",
|
||||
)
|
||||
search_fields = ("name",)
|
||||
readonly_fields = ["created_at"]
|
||||
readonly_fields = ["created_at", "slug"]
|
||||
|
||||
|
||||
@admin.register(models.MailDomainAccess)
|
||||
|
||||
Reference in New Issue
Block a user