Changeset 8821
- Timestamp:
- 09/01/08 17:28:18 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/tests/regressiontests/model_inheritance_regress/models.py
r8814 r8821 99 99 100 100 >>> dicts = Restaurant.objects.values('name','serves_hot_dogs') 101 >>> [sorted(d.items()) for d in dicts] 102 [[('name', u"Guido's House of Pasta"), ('serves_hot_dogs', True)]] 101 >>> [sorted(d.items()) for d in dicts] == [[('name', u"Guido's House of Pasta"), ('serves_hot_dogs', True)]] 102 True 103 103 104 104 >>> dicts = ItalianRestaurant.objects.values('name','serves_hot_dogs','serves_gnocchi') 105 >>> [sorted(d.items()) for d in dicts] 106 [[('name', u"Guido's House of Pasta"), ('serves_gnocchi', True), ('serves_hot_dogs', True)]] 105 >>> [sorted(d.items()) for d in dicts] == [[('name', u"Guido's House of Pasta"), ('serves_gnocchi', True), ('serves_hot_dogs', True)]] 106 True 107 107 108 108 >>> dicts = ParkingLot.objects.values('name','capacity') … … 131 131 132 132 >>> dicts = Restaurant.objects.values('name','serves_hot_dogs') 133 >>> [sorted(d.items()) for d in dicts] 134 [[('name', u"Guido's All New House of Pasta"), ('serves_hot_dogs', False)]] 133 >>> [sorted(d.items()) for d in dicts] == [[('name', u"Guido's All New House of Pasta"), ('serves_hot_dogs', False)]] 134 True 135 135 136 136 >>> dicts = ItalianRestaurant.objects.values('name','serves_hot_dogs','serves_gnocchi') 137 >>> [sorted(d.items()) for d in dicts] 138 [[('name', u"Guido's All New House of Pasta"), ('serves_gnocchi', False), ('serves_hot_dogs', False)]] 137 >>> [sorted(d.items()) for d in dicts] == [[('name', u"Guido's All New House of Pasta"), ('serves_gnocchi', False), ('serves_hot_dogs', False)]] 138 True 139 139 140 140 >>> dicts = ParkingLot.objects.values('name','capacity') … … 151 151 # - name is an attribute of Place, not ItalianRestaurant 152 152 >>> dicts = ItalianRestaurant.objects.values('name','serves_hot_dogs','serves_gnocchi') 153 >>> [sorted(d.items()) for d in dicts] 154 [[('name', u"Guido's All New House of Pasta"), ('serves_gnocchi', False), ('serves_hot_dogs', False)]] 153 >>> [sorted(d.items()) for d in dicts] == [[('name', u"Guido's All New House of Pasta"), ('serves_gnocchi', False), ('serves_hot_dogs', False)]] 154 True 155 155 156 156 # Regressions tests for #7105: dates() queries should be able to use fields
