django-tree
django-tree copied to clipboard
Fast and easy tree structures.
Django's [dumpdata](https://docs.djangoproject.com/en/dev/ref/django-admin/#dumpdata) command results in PathField instances being serialized like this: ``` ... "path": "[\"0E-10\"]", ... ``` Then, [loaddata](https://docs.djangoproject.com/en/dev/ref/django-admin/#django-admin-loaddata) results in a deserialization error because the value is a string...
Closed by #11
This is my models.py: ``` class Group(models.Model, TreeModelMixin): group_id = models.AutoField(primary_key=True) groupParent_id = models.ForeignKey('self', blank=True, null=True, related_name='parent', on_delete=models.CASCADE) group_name = models.CharField(max_length=100, null=False, blank=False, unique=True) path = PathField() def __str__(self): return...
I would be interested to see [django-treenode](https://github.com/fabiocaccamo/django-treenode) included in the benchmarks. It is described as "probably the best abstract model/admin for your tree based stuff" and appears to be the...
Using django-treebeard with celery has been a bit of nightmare, it's mulitprocessing unsafe, and this caused a bit of a headache. I'm guessing django-tree is MP safe, but the docs...
Bumps [numpy](https://github.com/numpy/numpy) from 1.14.0 to 1.22.0. Release notes Sourced from numpy's releases. v1.22.0 NumPy 1.22.0 Release Notes NumPy 1.22.0 is a big release featuring the work of 153 contributors spread...
Bumps [tqdm](https://github.com/tqdm/tqdm) from 4.64.1 to 4.66.3. Release notes Sourced from tqdm's releases. tqdm v4.66.3 stable cli: eval safety (fixes CVE-2024-34062, GHSA-g7vv-2v7x-gj9p) tqdm v4.66.2 stable pandas: add DataFrame.progress_map (#1549) notebook: fix...
Here is an example of this error: ```python IntegrityError at /admin/someapp/somemodel/add/ duplicate key value violates unique constraint "someapp_somemodel_path_unique" DETAIL: Key (path)=({277.9999999987}) already exists. ``` This is due to the new...