diff --git a/template/justfile b/template/justfile
index 597bc73..0ac3d44 100644
--- a/template/justfile
+++ b/template/justfile
@@ -99,6 +99,11 @@ gen-doc:
 [group('model development')]
 testdoc: gen-doc _serve
 
+# Generate the Python data models (dataclasses & pydantic)
+gen-python:
+  poetry run gen-project -d  {{pymodel}} -I python {{source_schema_path}}
+  poetry run gen-pydantic {{gen_pydantic_args}} {{source_schema_path}} > {{pymodel}}/{{schema_name}}_pydantic.py
+
 # Generate project files including Python data model
 [group('model development')]
 gen-project:
@@ -177,7 +182,7 @@ _test-schema:
     poetry run gen-project {{config_yaml}} -d tmp {{source_schema_path}}
 
 # Run Python unit tests with pytest
-_test-python:
+_test-python: gen-python
     poetry run python -m pytest
 
 # Run example tests