kaxil commented on a change in pull request #10897:
URL: https://github.com/apache/airflow/pull/10897#discussion_r488887499



##########
File path: airflow/models/dag.py
##########
@@ -1621,6 +1621,13 @@ def sync_to_db(self, sync_time=None, session=None):
         """
         self.bulk_sync_to_db([self], sync_time, session)
 
+    def get_default_view(self):
+        """This is only there for backward compatible jinja2 templates"""
+        if self.default_view is None:
+            return conf.get('webserver', 'dag_default_view').lower()
+        else:
+            return self.default_view

Review comment:
       I can remove this piece tbh, I just added it so that it is in parity 
with DAGModel. Will remove it




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to