Skip to content

Commit

Permalink
Tests schema name in db_table.
Browse files Browse the repository at this point in the history
  • Loading branch information
BertrandBordage committed Jun 14, 2018
1 parent 909b4f2 commit f136d72
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cachalot/tests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Test(Model):
duration = DurationField(null=True, blank=True)
uuid = UUIDField(null=True, blank=True)

class Meta(object):
class Meta:
ordering = ('name',)


Expand All @@ -58,3 +58,7 @@ class PostgresModel(Model):
float_range = FloatRangeField(null=True, blank=True)
date_range = DateRangeField(null=True, blank=True)
datetime_range = DateTimeRangeField(null=True, blank=True)

class Meta:
# Tests schema name in table name.
db_table = '"public"."cachalot_postgresmodel"'

0 comments on commit f136d72

Please sign in to comment.