Skip to content

Commit

Permalink
disable unique column in BulkUpdate dropdown (piccolo-orm#379)
Browse files Browse the repository at this point in the history
* disable unique column in BulkUpdate dropdown

* add unique to PropertyExtra

* wait for Vue to load for Playwright test

* update to latest Piccolo
  • Loading branch information
sinisaos authored Mar 22, 2024
1 parent 0ddb43f commit 9718c02
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion admin_ui/src/components/BulkUpdateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
<option
:key="columnName"
:value="columnName"
v-if="columnName != schema.extra.primary_key_name"
v-if="
columnName != schema.extra.primary_key_name &&
property.extra.unique == false
"
>
{{ property.title }}
</option>
Expand Down
1 change: 1 addition & 0 deletions admin_ui/src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ export interface PropertyExtra {
help_text: string | null
nullable: boolean
secret: boolean
unique: boolean
widget?: string
}

Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
piccolo>=1.1.0
piccolo>=1.5.0
piccolo_api>=1.1.0
uvicorn
aiofiles>=0.5.0
Expand Down

0 comments on commit 9718c02

Please sign in to comment.