Create user applications as validated from user preferences

Closes #12376
This commit is contained in:
Sergi Almacellas Abellana
2023-08-27 11:46:00 +02:00
parent 030dce36ac
commit 3ad60ab0dd
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -1,3 +1,4 @@
* Create user applications as validated from user preferences
* Support GIN index with btree_gin PostgreSQL extension
* Add a canonicalize function for domains
* Enforce record rules when reading only non SQL fields (#12428)
+1 -1
View File
@@ -42,7 +42,7 @@ def user_application(request, pool):
user_id = None
data['user'] = user_id
data.pop('key', None)
data.pop('state', None)
data['state'] = 'requested'
application, = UserApplication.create([data])
key = application.key
UserApplication.delete(UserApplication.search([
+1 -1
View File
@@ -1164,7 +1164,7 @@ class UserApplication(Workflow, ModelSQL, ModelView):
@classmethod
def default_state(cls):
return 'requested'
return 'validated'
@classmethod
@ModelView.button