You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an UUID field in the models which is generated by postgres UUID extension. Is there any mechanism to skip adding the value for this field in the json file? Error I am facing -
Traceback (most recent call last):
File "/Users/kshitij/enable/workspace/security/data/seed.py", line 19, in
seeder.seed(entities)
File "/Users/kshitij/enable/workspace/security/.venv/lib/python3.11/site-packages/sqlalchemyseed/seeder.py", line 119, in seed
self._pre_seed()
File "/Users/kshitij/enable/workspace/security/.venv/lib/python3.11/site-packages/sqlalchemyseed/seeder.py", line 131, in _pre_seed
self._seed()
File "/Users/kshitij/enable/workspace/security/.venv/lib/python3.11/site-packages/sqlalchemyseed/seeder.py", line 166, in seed
init_item()
File "/Users/kshitij/enable/workspace/security/.venv/lib/python3.11/site-packages/sqlalchemyseed/seeder.py", line 152, in init_item
instance = class(**filtered_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: init() missing 1 required positional argument: 'id'
The text was updated successfully, but these errors were encountered:
I have an UUID field in the models which is generated by postgres UUID extension. Is there any mechanism to skip adding the value for this field in the json file? Error I am facing -
Traceback (most recent call last):
File "/Users/kshitij/enable/workspace/security/data/seed.py", line 19, in
seeder.seed(entities)
File "/Users/kshitij/enable/workspace/security/.venv/lib/python3.11/site-packages/sqlalchemyseed/seeder.py", line 119, in seed
self._pre_seed()
File "/Users/kshitij/enable/workspace/security/.venv/lib/python3.11/site-packages/sqlalchemyseed/seeder.py", line 131, in _pre_seed
self._seed()
File "/Users/kshitij/enable/workspace/security/.venv/lib/python3.11/site-packages/sqlalchemyseed/seeder.py", line 166, in seed
init_item()
File "/Users/kshitij/enable/workspace/security/.venv/lib/python3.11/site-packages/sqlalchemyseed/seeder.py", line 152, in init_item
instance = class(**filtered_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: init() missing 1 required positional argument: 'id'
The text was updated successfully, but these errors were encountered: