1
0

18 Commits

Author SHA256 Message Date
79131ddca4 Accepting request 1148962 from devel:languages:python:django
- Update to 4.4.0:
  * Add support for `Python 3.11`
  * Add support for `Python 3.12`
  * Drop support for `Python 3.7`
  * Add support for `Django 4.2`
  * Add support for `Django 5.0`
  * Remove ``SaveSignalHandlingModel``. This model used a modified copy of
    the internal Django method `Model.save_base()` and had not been updated
    for upstream bug fixes changes since its addition.
  * Add Swedish translation
  * Use proper column name instead of attname
  * Fix ValueError when calling prefetch_related for tracked ForeignKey fields
- Switch to autosetup and pyproject macros.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/request/show/1148962
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-model-utils?expand=0&rev=9
2024-02-22 19:58:45 +00:00
17cc02ea5f - Update to 4.4.0:
* Add support for `Python 3.11`
  * Add support for `Python 3.12`
  * Drop support for `Python 3.7`
  * Add support for `Django 4.2`
  * Add support for `Django 5.0`
  * Remove ``SaveSignalHandlingModel``. This model used a modified copy of
    the internal Django method `Model.save_base()` and had not been updated
    for upstream bug fixes changes since its addition.
  * Add Swedish translation
  * Use proper column name instead of attname
  * Fix ValueError when calling prefetch_related for tracked ForeignKey fields
- Switch to autosetup and pyproject macros.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-model-utils?expand=0&rev=15
2024-02-22 05:02:26 +00:00
ae7bfb4c74 Accepting request 1055879 from devel:languages:python:django
- update to 4.3.1:
  * Confirm support for `Django 4.0`
  * Add Spanish translation
  * Add French translation
  * Drop Django 1.7 workaround from `select_subclasses()`
  * Drop support for `Django < 3.2`
  * Drop support for `Python 3.6`
  * Confirm support for `Django 4.1`

OBS-URL: https://build.opensuse.org/request/show/1055879
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-model-utils?expand=0&rev=8
2023-01-04 16:53:53 +00:00
b7c93acf33 - update to 4.3.1:
* Confirm support for `Django 4.0`
  * Add Spanish translation
  * Add French translation
  * Drop Django 1.7 workaround from `select_subclasses()`
  * Drop support for `Django < 3.2`
  * Drop support for `Python 3.6`
  * Confirm support for `Django 4.1`

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-model-utils?expand=0&rev=13
2023-01-04 14:46:51 +00:00
0373de9c5c Accepting request 944651 from devel:languages:python:django
OBS-URL: https://build.opensuse.org/request/show/944651
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-model-utils?expand=0&rev=7
2022-01-07 11:46:43 +00:00
John Vandenberg
01071a7edd Accepting request 944650 from home:jayvdb:branches:devel:languages:python:django
- Skip Tumbleweed Python 3.6 incompatible with Django 4

OBS-URL: https://build.opensuse.org/request/show/944650
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-model-utils?expand=0&rev=12
2022-01-07 06:30:35 +00:00
63e711e680 Accepting request 942515 from devel:languages:python:django
OBS-URL: https://build.opensuse.org/request/show/942515
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-model-utils?expand=0&rev=6
2021-12-26 12:30:28 +00:00
John Vandenberg
b6161bdcf8 Accepting request 942514 from home:jayvdb:branches:devel:languages:python:django
- Update to v4.2.0

OBS-URL: https://build.opensuse.org/request/show/942514
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-model-utils?expand=0&rev=11
2021-12-26 04:46:14 +00:00
431ac4f82c Accepting request 831417 from devel:languages:python:django
- Fix test execution

OBS-URL: https://build.opensuse.org/request/show/831417
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-model-utils?expand=0&rev=5
2020-09-02 23:17:52 +00:00
a6a90873c0 - Fix test execution
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-model-utils?expand=0&rev=9
2020-09-02 09:32:53 +00:00
fea4fd7834 Accepting request 761368 from devel:languages:python:django
- Update to 4.0.0:
  * Added Choices.subset.
  * Remove hacks for previously supported Django versions. (Fixes GH-390)
  * Dropped support for Python 2.7. (Fixes GH-393)
  * Dropped usage of six
  * Drop support for Django 1.11
  * Add support for Python 3.8
  * Add support for Django 3.0

OBS-URL: https://build.opensuse.org/request/show/761368
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-model-utils?expand=0&rev=4
2020-01-07 22:54:16 +00:00
Tomáš Chvátal
e8b992eb20 - Update to 4.0.0:
* Added Choices.subset.
  * Remove hacks for previously supported Django versions. (Fixes GH-390)
  * Dropped support for Python 2.7. (Fixes GH-393)
  * Dropped usage of six
  * Drop support for Django 1.11
  * Add support for Python 3.8
  * Add support for Django 3.0

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-model-utils?expand=0&rev=7
2020-01-07 09:17:51 +00:00
b9e8c6e789 Accepting request 713052 from devel:languages:python:django
- Add patch use-sqlite.patch to use sqlite for testing and not
  postgresql

- Update to 3.2.0:
  * Catch AttributeError for deferred abstract fields, fixes GH-331.
  * Update documentation to explain usage of timeframed model manager, fixes GH-118
  * Honor OneToOneField.parent_link=False.
  * Fix handling of deferred attributes on Django 1.10+, fixes GH-278
  * Fix FieldTracker.has_changed() and FieldTracker.previous() to return correct responses for deferred fields.
  * Add Simplified Chinese translations.
  * Update AutoLastModifiedField so that at instance creation it will always be set equal to created to make querying easier. Fixes GH-254
  * Support reversed for all kinds of Choices objects, fixes GH-309
  * Fix Model instance non picklable GH-330
  * Fix patched save in FieldTracker
  * Upgrades test requirements (pytest, pytest-django, pytest-cov) and skips tox test with Python 3.5 and Django (trunk)
  * Add UUIDModel and UUIDField support.
- Remove upstream merged fix-deferred.patch

OBS-URL: https://build.opensuse.org/request/show/713052
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-model-utils?expand=0&rev=3
2019-07-03 13:14:58 +00:00
Tomáš Chvátal
c761830781 - Add patch use-sqlite.patch to use sqlite for testing and not
postgresql

- Update to 3.2.0:
  * Catch AttributeError for deferred abstract fields, fixes GH-331.
  * Update documentation to explain usage of timeframed model manager, fixes GH-118
  * Honor OneToOneField.parent_link=False.
  * Fix handling of deferred attributes on Django 1.10+, fixes GH-278
  * Fix FieldTracker.has_changed() and FieldTracker.previous() to return correct responses for deferred fields.
  * Add Simplified Chinese translations.
  * Update AutoLastModifiedField so that at instance creation it will always be set equal to created to make querying easier. Fixes GH-254
  * Support reversed for all kinds of Choices objects, fixes GH-309
  * Fix Model instance non picklable GH-330
  * Fix patched save in FieldTracker
  * Upgrades test requirements (pytest, pytest-django, pytest-cov) and skips tox test with Python 3.5 and Django (trunk)
  * Add UUIDModel and UUIDField support.
- Remove upstream merged fix-deferred.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-model-utils?expand=0&rev=5
2019-07-02 12:22:58 +00:00
9cb48ef2ac Accepting request 697482 from devel:languages:python:django
- Fix requires on python-Django

OBS-URL: https://build.opensuse.org/request/show/697482
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-model-utils?expand=0&rev=2
2019-04-30 11:01:20 +00:00
Tomáš Chvátal
bd9a6e16ef - Fix requires on python-Django
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-model-utils?expand=0&rev=3
2019-04-24 12:37:44 +00:00
Stephan Kulow
d39403d1d6 Accepting request 677637 from devel:languages:python:django
- Update to version 3.1.2
- Patch for Django 2
- Update to support Python 3
- Update to version 2.0
  + BACKWARDS-INCOMPATIBLE: Indexing into a ``Choices`` instance now
    translates database representations to human-readable choice names,
    rather than simply indexing into an array of choice tuples. (Indexing
    into ``Choices`` was previously not documented.) If you have code
    that is relying on indexing or slicing ``Choices``, the simplest 
    workaround is to change e.g. ``STATUS[1:]`` to ``list(STATUS)[1:]``.
  + Fixed bug with checking for field name conflicts for added query
    managers on `StatusModel`.
  + Can pass `choices_name` to `StatusField` to use a different name
    for choices class attribute. ``STATUS`` is used by default.
  + Can pass model subclasses, rather than strings, into `select_subclasses()`
  + Deepcopying a `Choices` instance no longer fails with infinite
    recursion in `getattr`.
  + `get_subclass()` method is now available on both managers and querysets
  + Fix bug in `InheritanceManager` with grandchild classes on Django 1.6+;
    `select_subclasses('child', 'child__grandchild')` would only ever get
    to the child class.
   + MonitorField now accepts a 'when' parameter. It will update only
     when the field changes to one of the values specified.
- Update to version 1.5.0
  + Choices now accepts option-groupings. Fixes GH-14.
  + Choices can now be added to other Choices or to any iterable, and can
    be compared for equality with itself.
  + Choices now __contains__ its Python identifier values.
  + Fixed a bug causing KeyError when saving with the parameter update
   _fields in which there are untracked fields.
 +  Fixed FieldTracker usage on inherited models. Fixes GH-57.
 +  Added mutable field support to FieldTracker
- Use download url as source url
- Replace python-distribute with python-setuptools BuildRequires
- Add documentation from tarball 
- Update to 1.2.0:
  - Moved primary development from Bitbucket to GitHub. Bitbucket
    mirror will continue to receive updates; Bitbucket issue tracker
    will be closed once all issues tracked in it are resolved.
  - Removed deprecated ChoiceEnum, InheritanceCastModel,
    InheritanceCastManager, and manager_from.
  - Fixed pickling of PassThroughManager. Thanks Rinat Shigapov.
  - Set use_for_related_fields = True on QueryManager.
  - Added __len__ method to Choices. Thanks Ryan Kaskel and James
    Oakley.
  - Fixed InheritanceQuerySet on Django 1.5. Thanks Javier García
    Sogo.
- Update to 1.1.0:
  - Updated AutoCreatedField, AutoLastModifiedField, MonitorField, and
    TimeFramedModel to use ``django.utils.timezone.now`` on Django 1.4.
    Thanks Donald Stufft.
  - Fixed annotation of InheritanceQuerysets. Thanks Jeff Elmore and Facundo
    Gaich.
  - Dropped support for Python 2.5 and Django 1.1. Both are no longer supported
    even for security fixes, and should not be used.
  - Added ``PassThroughManager.for_queryset_class()``, which fixes use of
    ``PassThroughManager`` with related fields. Thanks Ryan Kaskel for report and
    fix.
- Added ``InheritanceManager.get_subclass()``. Thanks smacker.
- Update to 1.0.0:
  - Fixed using SplitField on an abstract base model.
  - Fixed issue #8, adding ``use_for_related_fields = True`` to
    ``InheritanceManager``.
  - Added ``PassThroughManager``. Thanks Paul McLanahan.
  - Added pending-deprecation warnings for ``InheritanceCastModel``,
    ``manager_from``, and Django 1.1 support. Removed documentation for the
    deprecated utilities. Bumped ``ChoiceEnum`` from pending-deprecation to
    deprecation.
  - Fixed issue #6, bug with InheritanceManager and descriptor fields (e.g.
    FileField).  Thanks zyegfryed for the fix and sayane for tests.
- Regenerate spec file with py2pack.
- Update to 0.6.0:
  - Updated SplitField to define get_prep_value rather than
    get_db_prep_value. This avoids deprecation warnings on Django
    trunk/1.3, but makes SplitField incompatible with Django
    versions prior to 1.2.
  - Added InheritanceManager, a better approach to selecting
    subclass instances for Django 1.2+. Thanks Jeff Elmore.
  - Added InheritanceCastManager and InheritanceCastQuerySet, to
    allow bulk casting of a queryset to child types. Thanks Gregor
    Müllegger.
- Update to 0.5.0;
- Bzip2 source file;
- Spec file cleaned with spec-cleaner.
- Update to 0.4.0.
- Initial package (0.3.1) for openSUSE.

OBS-URL: https://build.opensuse.org/request/show/677637
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-django-model-utils?expand=0&rev=1
2019-02-25 16:52:06 +00:00
Tomáš Chvátal
98567f2e11 Accepting request 677634 from home:jayvdb:django
- Update to version 3.1.2
- Patch for Django 2
- Update to support Python 3

OBS-URL: https://build.opensuse.org/request/show/677634
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-model-utils?expand=0&rev=1
2019-02-20 09:29:27 +00:00