Changeset 7111
- Timestamp:
- 02/13/08 23:26:52 (7 months ago)
- Files:
-
- django/trunk/docs/contenttypes.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/contenttypes.txt
r6302 r7111 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') … … 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')
