Thanks,
Two further questions if you don’t mind:
1. I am in the Python interpreter and am working with
one of my db models called SmallGroup.
When I do SmallGroup.objects.all() I get the following message:
File "<console>", line 1, in <module>
File "/Library/Python/2.7/site-packages/django/db/models/query.py", line 119, in __repr__
return repr(data)
File "/Library/Python/2.7/site-packages/django/db/models/base.py", line 458, in __repr__
u = six.text_type(self)
TypeError: coercing to Unicode: need string or buffer, SmallGroup found
Does this have something to do with the method `__str__` which I added
to this model in my `models.py`? I don’t think I did a ‘python manage.py migrate’ after
the change though.
2. If I want to modify or delete entries in the db table SmallGroup are there
methods corresponding to `bulk_create` for doing this? Something like
Country.objects.using(db_alias).bulk_update( <list> )
Country.objects.using(db_alias).bulk_delete( <list> )
?
Thanks again in advance.
Sandeep
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
django-users...@googlegroups.com.
> To post to this group, send email to
django...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/django-users.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/54F814FC.9090407%40arkade.info.
> For more options, visit
https://groups.google.com/d/optout.