Skip to content

Releases: tuffnatty/xsd_to_django_model

Release 1.1.0

15 Jan 04:06
Compare
Choose a tag to compare
  • 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 over strategy=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

24 Jul 14:12
Compare
Choose a tag to compare

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

30 Apr 15:03
Compare
Choose a tag to compare

Added skip_code option to skip generated model code from output.

Version 0.8.7

27 Apr 13:30
Compare
Choose a tag to compare

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

26 Apr 13:17
Compare
Choose a tag to compare

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

13 Apr 15:38
Compare
Choose a tag to compare

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

23 Feb 18:12
Compare
Choose a tag to compare

Version 0.8.4

  • Fixed related_name clash when both ForeignKey and ManyToManyField to the same related model coexist.

v0.8.2

17 Aug 23:14
Compare
Choose a tag to compare

Version 0.8.2.

  • Added documentation (c8c6146).
  • Added plain_index_fields and gin_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

17 Aug 13:46
Compare
Choose a tag to compare

Version 0.8.1

  • Added support for maxOccurs=unbounded directly in array_fields (aa1c6b4).
  • Added support for 'abstract': True model option overriding xs: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 when null=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

16 Aug 03:48
Compare
Choose a tag to compare

Version 0.8.0.

  • Added some usage/tweaking examples (3107839).
  • Added support for xs:element[@ref] and xs: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 and xs:anyAttribute (90609e1).
  • Added support for xs:complexType/xs:simpleContent/xs:restriction[@base] in flatten_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 has xs:attributes (7e67df2).
  • Fixed default value parsing for types other than xs:boolean and xs:string (98b7fb8).