Using South HOWTO create an instance of a model from a different app during DataMigration

2011-08-08 Thread Chintan Tank
(sorry for duplicate I have already posted on stackoverflow.com > http://goo.gl/I7Jj6 ) I need to perform a datamigration of a model Answer in app Question. In that script there is a dependency such that I need to create an instance of a model Chapter which is in the app Journal. So, I coded it as

Re: problem with django admin

2011-08-08 Thread Chintan Tank
I think you might want to define what text to display when you directly reference the model's instance. see https://docs.djangoproject.com/en/dev/ref/models/instances/?from=olddocs#unicode In Java it is like overriding the toString() method. On Mon, Aug 8, 2011 at 10:35 AM, Oyedamola Oyeniyi wro

Re: Using South HOWTO create an instance of a model from a different app during DataMigration

2011-08-08 Thread Chintan Tank
Tom, Thanks for your reply. I will try it out and post back the results. On Mon, Aug 8, 2011 at 10:25 AM, Tom Evans wrote: > On Mon, Aug 8, 2011 at 3:06 PM, Chintan Tank > wrote: > > (sorry for duplicate I have already posted on stackoverflow.com > > > http://goo.gl/I7Jj

Re: Using South HOWTO create an instance of a model from a different app during DataMigration

2011-08-13 Thread Chintan Tank
error,* AttributeError: type object 'ContentType' has no attribute 'get' *BTW*, I am using *South 0.7.3.* Thanks again for helping. On Mon, Aug 8, 2011 at 10:25 AM, Tom Evans wrote: > On Mon, Aug 8, 2011 at 3:06 PM, Chintan Tank > wrote: > > (sorry for d

Re: Using South HOWTO create an instance of a model from a different app during DataMigration

2011-08-13 Thread Chintan Tank
*UPDATE:* * * I was able to resolve the problem by looking up the contenttype manually so, ct = orm['contenttypes.ContentType'].*objects.*get(app_label="blog", model="Post") Thanks Tom & Andrew (at south user listserv) for helping with this. On Sat, Aug 13, 20

Re: Could not parse the remainder: |slice

2011-08-13 Thread Chintan Tank
o 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. > -- Thanks & Regards, Chi

Re: Ynt: Re: Could not parse the remainder: |slice

2011-08-13 Thread Chintan Tank
nsubscribe 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. > -- Thanks & Regards, Chintan Tank Software Developer School of Library & Information Science I