arteria / django-openinghours

Allows to define opening hours and to verify if something, for example a store, is currently open.
MIT License
57 stars 38 forks source link

make company model swappable #30

Closed imposeren closed 6 years ago

imposeren commented 6 years ago

Company model should be swappable. This should fix:

25 #28

Also when custom model is used TestRunner is unable to serialize data for openninghours.Company:

    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "openinghours_company" does not exist
LINE 1: ...mpany"."slug", "openinghours_company"."logo" FROM "openingho...

This MR should fix this too

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.05%) to 85.531% when pulling 00587e119a659edf69bf6fbdd36abf0b0ced7505 on imposeren:use-swappable-model into 0a80b43466f69c6c4bfea737c278c2dea0e8c731 on arteria:master.

SirEdvin commented 6 years ago

@arteria, can you please merge it?

imposeren commented 6 years ago

@jvamvas, @walterrenner, can anyone from arteria please merge this and release new version on PyPI?