Changes between Initial Version and Version 1 of Ticket #30391
- Timestamp:
- Apr 22, 2019, 4:02:25 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30391 – Description
initial v1 7 7 comment = Comments.objects.using('specialcmts').get(pk=23) 8 8 #if pk=23 exists in 'default' db, comment will be that value, or it throws an error. 9 comment = Comments.objects.using('specialcmts').filter(pk=23)[0] 10 #Same behaviour as above. 11 12 #I'm working around this with: 13 comment = None 14 comments = Comments.objects.using('specialcmts').filter(pk=23) 15 for c in comments: 16 comment = c 9 17 }}}