django-composition
django-composition copied to clipboard
DSL for smart database fields denormalization
add deconstruct method for Django migration ( Django > 1.7 )
We've been using django-composition with Django 1.3.5 for a while now, with no problems. Recently we started the process of upgrading to Django 1.4.3 and the code breaks when saving...
Чтоб south'у жилось легче, нужно добавить вот этот метод к CompositionField: ``` def south_field_triple(self): "Returns a suitable description of this field for South." # We'll just introspect the _actual_ field....
This looks like something I may be looking for but I don't understand at all how it's used or what the outcome would be from it's use.
Что-нибудь мешает добавить его в репку рядом с другими шорткатами? from composition.base import CompositionField from django.db import models class ForeignCountField(CompositionField): def **init**(self, model, link_back_name, link_to_foreign_name, filter={}, native=None, signal=None, verbose_name=None): self.model...
нашел небольшой баг (подробнее описал в посте http://pyoner.ru/2009/10/blog-post.html) модель определенная ниже не может быть присоединена, т.к. она не находится/не определена в связи с этим написал патч устраняющий данную проблему