Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(620)

Side by Side Diff: frontend/tko/models.py

Issue 1595019: Merge remote branch 'origin/upstream' into tempbranch (Closed)
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « frontend/planner/support.py ('k') | server/profilers.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 from django.db import models as dbmodels, connection 1 from django.db import models as dbmodels, connection
2 from django.utils import datastructures 2 from django.utils import datastructures
3 from autotest_lib.frontend.afe import model_logic, readonly_connection 3 from autotest_lib.frontend.afe import model_logic, readonly_connection
4 4
5 _quote_name = connection.ops.quote_name 5 _quote_name = connection.ops.quote_name
6 6
7 class TempManager(model_logic.ExtendedManager): 7 class TempManager(model_logic.ExtendedManager):
8 _GROUP_COUNT_NAME = 'group_count' 8 _GROUP_COUNT_NAME = 'group_count'
9 9
10 def _get_key_unless_is_function(self, field): 10 def _get_key_unless_is_function(self, field):
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 226
227 class Meta: 227 class Meta:
228 db_table = 'tko_iteration_attributes' 228 db_table = 'tko_iteration_attributes'
229 229
230 230
231 class IterationResult(dbmodels.Model, model_logic.ModelExtensions): 231 class IterationResult(dbmodels.Model, model_logic.ModelExtensions):
232 # see comment on IterationAttribute regarding primary_key=True 232 # see comment on IterationAttribute regarding primary_key=True
233 test = dbmodels.ForeignKey(Test, db_column='test_idx', primary_key=True) 233 test = dbmodels.ForeignKey(Test, db_column='test_idx', primary_key=True)
234 iteration = dbmodels.IntegerField() 234 iteration = dbmodels.IntegerField()
235 attribute = dbmodels.CharField(max_length=90) 235 attribute = dbmodels.CharField(max_length=90)
236 value = dbmodels.DecimalField(null=True, max_digits=12, decimal_places=31, 236 value = dbmodels.FloatField(null=True, blank=True)
237 blank=True)
238 237
239 objects = model_logic.ExtendedManager() 238 objects = model_logic.ExtendedManager()
240 239
241 class Meta: 240 class Meta:
242 db_table = 'tko_iteration_result' 241 db_table = 'tko_iteration_result'
243 242
244 243
245 class TestLabel(dbmodels.Model, model_logic.ModelExtensions): 244 class TestLabel(dbmodels.Model, model_logic.ModelExtensions):
246 name = dbmodels.CharField(max_length=80, unique=True) 245 name = dbmodels.CharField(max_length=80, unique=True)
247 description = dbmodels.TextField(blank=True) 246 description = dbmodels.TextField(blank=True)
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 apply_presentation=True): 685 apply_presentation=True):
687 if initial_query is None: 686 if initial_query is None:
688 initial_query = cls.objects.get_query_set_with_joins(filter_data) 687 initial_query = cls.objects.get_query_set_with_joins(filter_data)
689 return super(TestView, cls).query_objects( 688 return super(TestView, cls).query_objects(
690 filter_data, initial_query=initial_query, 689 filter_data, initial_query=initial_query,
691 apply_presentation=apply_presentation) 690 apply_presentation=apply_presentation)
692 691
693 692
694 class Meta: 693 class Meta:
695 db_table = 'tko_test_view_2' 694 db_table = 'tko_test_view_2'
OLDNEW
« no previous file with comments | « frontend/planner/support.py ('k') | server/profilers.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698