Skip to content

Commit baea675

Browse files
committed
Some docstrings
1 parent 56e2c6a commit baea675

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

postgres_copy/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ def to_csv(self, csv_path, *fields, **kwargs):
2323
Copy current QuerySet to CSV at provided path.
2424
"""
2525
try:
26+
# For Django 2.0 forward
2627
query = self.query.chain(CopyToQuery)
2728
except AttributeError:
29+
# For Django 1.11 backward
2830
query = self.query.clone(CopyToQuery)
2931

3032
# Get fields

0 commit comments

Comments
 (0)