Cross database relations

2010-07-23 Thread IsakovAN
Hello I have a code like this: class A(models.Model): ... class B(models.Model): a = models.ForeignKey(A) ... Database router set DIFFERENT databases for reading for this classes and allowing relations. B.objects.all() result: SELECT ... FROM A_table LEFT OUTER JOIN B_table ON ... O

Custom field state

2010-03-24 Thread IsakovAN
Hello I have made a custom db.field - WeekdaysField wich allow me to split week days into four groups. Also I create forms.field and widget to display it as seven SELECTs. All works fine, but when I have tried to use it with inlinadmin... When editing object Foo wich have TablularInline with relat