Ticket #278 (closed enhancement: invalid)

Opened 6 years ago

Last modified 6 years ago

Integrate with django-denorm

Reported by: elsdoerfer@… Owned by: andrew
Priority: minor Milestone:
Component: commands Version: 0.6.2
Keywords: Cc:


I wonder if there is some clever way to integrate South with django-denorm, or maybe provide some kind of framework to enable django-denorm to integrate itself.

In particular, if I am adding a new denorm field, or change an existing one, startmigration could detect that change automatically, and include a call to "denorm_init" within the migration.

I've also posted an issue in the django-denorm tracker: http://github.com/initcrash/django-denorm/issues/#issue/2

Change History

comment:1 Changed 6 years ago by andrew

  • Status changed from new to closed
  • Resolution set to invalid

There's two ways of doing this kind of integration; see ExtendingIntrospection. In django-denorm's case it has to be the south_field_triple method, since it can impersonate many different field types.

It's not something we're really responsible for, so I'm closing this.

comment:2 Changed 6 years ago by elsdoerfer@…

FWIW, the current methods to extend introspection aren't sufficient for this (from all I can tell). It'd be necessary for custom fields to generate code within the actual migration (in forwards()/backwards()), in this case a call to django-denorm's "denorm_init" command.

Note: See TracTickets for help on using tickets.