(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
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
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
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
*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
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
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
7 matches
Mail list logo