Ticket #6600: docs.contenttypes-typos.patch
File docs.contenttypes-typos.patch, 905 bytes (added by , 17 years ago) |
---|
-
docs/contenttypes.txt
215 215 object it's related to, and you can also assign to that field or use it when 216 216 creating a ``TaggedItem``:: 217 217 218 >>> from django.contrib. models.authimport User218 >>> from django.contrib.auth.models import User 219 219 >>> guido = User.objects.get(username='Guido') 220 220 >>> t = TaggedItem(content_object=guido, tag='bdfl') 221 221 >>> t.save() … … 235 235 ``Bookmark`` instances will each have a ``tags`` attribute, which can 236 236 be used to retrieve their associated ``TaggedItems``:: 237 237 238 >>> b = Bookmark( 'http://www.djangoproject.com/')238 >>> b = Bookmark(url='http://www.djangoproject.com/') 239 239 >>> b.save() 240 240 >>> t1 = TaggedItem(content_object=b, tag='django') 241 241 >>> t1.save()