Merge branch 'versions/minor' into features/workflow_email_action

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-07-07 00:20:38 -04:00
1233 changed files with 8967 additions and 6365 deletions

View File

@@ -611,8 +611,6 @@ class SourceColumn(object):
# Try it as a queryset
columns.extend(cls._registry[source.model])
except AttributeError:
pass
try:
# Special case for queryset items produced from
# .defer() or .only() optimizations
@@ -676,7 +674,11 @@ class SourceColumn(object):
self._label = label
self.attribute = attribute
self.empty_value = empty_value
<<<<<<< HEAD
self.exclude = exclude or ()
=======
self.exclude = ()
>>>>>>> versions/minor
self.func = func
self.is_attribute_absolute_url = is_attribute_absolute_url
self.is_object_absolute_url = is_object_absolute_url
@@ -719,6 +721,9 @@ class SourceColumn(object):
self.label = self._label
def add_exclude(self, source):
self.exclude = self.exclude + (source,)
def get_absolute_url(self, obj):
if self.is_object_absolute_url:
return obj.get_absolute_url()