Releases: tuffnatty/xsd_to_django_model
Release 1.1.0
- Added
OneToOneField
support. - By default, don't generate custom Django field classes. This makes migrations smoother. Specify
-f FILENAME
to override. - Added
reverse_fields
option to simplify merging fields at mapping development time. - Added support for xs:complexType/xs:simpleContent.
- Fix
array_fields
priority overstrategy=1
. - Fix
TYPE_OVERRIDES
options overwriting each other. - Try to generate less unused imports.
- Try better to format the generated source within
MAX_LINE_LENGTH
limit.
Full Changelog: v1.0.1...v1.1.0
Version 0.8.9
Added DOC_PREPROCESSOR
setting.
Added support for xs:unsignedInt
type.
More accurate XSD namespaces handling.
Warn when a column name exceeds 63 characters, do not fail.
Fixed JSON attrs
inheritance in child models.
Fixed mapping of XSD types to model names with complex rules.
Do not emit model code for dependent models with skip_code
set to True
.
Fixed Python 3 / Django 2 compatibility in generated models code.
Version 0.8.8
Added skip_code
option to skip generated model code from output.
Version 0.8.7
Fix a typo; allow plain_index_fields
including unique_fields
, which does not work yet because of https://code.djangoproject.com/ticket/24082
Version 0.8.6
Fixed support for add_fields
within if_type
configuration branches.
Fixed support for one_to_many
fields within add_fields
configuration branches.
Version 0.8.5
Fixed class Meta
inheritance from abstract models; class-based Meta.indexes
were not inherited from parent model if any class Meta
was defined in the child model
v0.8.4
v0.8.2
Version 0.8.2.
- Added documentation (c8c6146).
- Added
plain_index_fields
andgin_index_fields
model options (a2b6756). - Removed warning about unsupported xs:anyAttribute (3cc709c).
- Fixed getting primitive type for
TYPE_OVERRIDES
(76bb7ff). - Fixed retrieving documentation from multiple
xs:annotation/xs:documentation
elements (5fe196a).
v0.8.1
Version 0.8.1
- Added support for
maxOccurs=unbounded
directly inarray_fields
(aa1c6b4). - Added support for
'abstract': True
model option overridingxs:complexType[@abstract]
attribute (32b45da). - Added support for
xs:all
(6f539d5). - Added support for
xs:attributeGroup
(bd49b55). - Added support for
xs:group
(0982d0d). - Never generate
OneToOneField
, it's a wrong thing to do most of the time (1c3da09). - Fixed array_fields with a single-attribute
xs:complexType
(6083c83). - Fixed primitive type introspection for deep
xs:simpleContent/xs:restriction[@base]
inheritance (183de02). - Don't output
default=
model field option whennull=True
(e060cfb). - Fixed flattening deep
xs:complexType/xs:complexContent/xs:extension[@base]
inheritance (bac0f5f). - Fixed an assertion when there are only attributes in
xs:complexType/xs:complexContent/xs:extension
(ce5943b).
v0.8.0
Version 0.8.0.
- Added some usage/tweaking examples (3107839).
- Added support for
xs:element[@ref]
andxs:attribute[@ref]
(666bebf). - Added support for
xs:include[@schemaLocation]
(5a5ad7b). - Added support for
xs:complexType/xs:complexContent/xs:extension/xs:choice
(cbdc2de). - Added support for
xs:token
type (32eeb64). - Added support for
xs:complexType[@abstract=true]
(a901bd4). - Added support for
xs:any
andxs:anyAttribute
(90609e1). - Added support for
xs:complexType/xs:simpleContent/xs:restriction[@base]
inflatten_fields
(9446aec). - Added a warning about unsupported
xs:complexType/xs:complexContent/xs:restriction
. - Added a warning about unsupported
xs:complexType[@mixed=true]
(bca64f5). - Added a warning about missing
xs:union
support (cb9af22). - Fixed a false warning about empty
xs:complexType
when it hasxs:attribute
s (7e67df2). - Fixed default value parsing for types other than
xs:boolean
andxs:string
(98b7fb8).