Changes between Initial Version and Version 1 of Ticket #26987, comment 4
- Timestamp:
- Aug 19, 2016, 1:01:13 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #26987, comment 4
initial v1 1 {{{ 1 2 ``get()`` raises :exc:`~django.core.exceptions.MultipleObjectsReturned` if more 2 3 than one object was found. The … … 8 9 if Entry.objects.all().count() == 1: 9 10 print(Entry.objects.get()) 11 }}}