also... Django version 1.1 beta 1 SVN-11082
On Jul 21, 1:22 pm, Some Guy <djul...@gmail.com> wrote: > I have a model with a proxy subclass. dumpdata saves an entry for > each of the superclass' and an additional entry for the proxy class > (with no fields) as well. > > loaddata then chokes on the superclasses constraints. Or is it > supposed to do this? > > i.e. (psuedocode..) > > assume app = 'bar' > > class a(Models.model): > foo = models..DateTimeField(auto_now_add=True) > > class b(a): > class Meta: > proxy = True > > dumpdata gives me something like this... > > [ > {"pk":1, > "model": "bar.a" > "fields":{ > "foo": "2009-07-02 12:48:13" > } > }, > {"pk":1, > "model": "bar.b" > "fields":{} > }, > ] > > Loaddata then chokes on import with an integrity error saying "foo can > not be null" --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---