class MyModel(hc_models.HerokuConnectModel): sf_object_name = "My_Object__c" date1 = hc_models.DateTime(sf_field_name="Date1__c", db_column="date1") date2 = hc_models.DateTime(sf_field_name="Date1__c", db_column="date2") class Meta: app_label = "test" abstract = True
class MyModel(hc_models.HerokuConnectModel): sf_object_name = 'My_Object__c' date1 = hc_models.DateTime(sf_field_name='Date1__c', db_column='date1') date2 = hc_models.DateTime(sf_field_name='Date1__c', db_column='date2') class Meta: app_label = 'test' abstract = True
class MyModel(hc_models.HerokuConnectModel): sf_object_name = 'My_Object__c' date1 = hc_models.DateTime(sf_field_name='Date1__c', db_index=True) date2 = hc_models.DateTime(sf_field_name='Date2__c', unique=True) date3 = hc_models.DateTime(sf_field_name='Date3__c', unique=True, db_index=True) class Meta: app_label = 'test' abstract = True
class MyReadOnlyModel(hc_models.HerokuConnectModel): sf_object_name = 'My_Object__c' date = hc_models.DateTime(sf_field_name='Date1__c') class Meta: app_label = 'test' abstract = True
class MyModel(hc_models.HerokuConnectModel): sf_object_name = "My_Object__c" date = hc_models.DateTime(sf_field_name="Date__c", upsert=True) class Meta: app_label = "test" abstract = True
class DateMixin(models.Model): date = hc_models.DateTime(sf_field_name='Date__c') class Meta: app_label = 'test' abstract = True
class DateTimeModel(hc_models.HerokuConnectModel): sf_access = hc_models.READ_WRITE sf_object_name = 'DateTime_Object__c' a_datetime = hc_models.DateTime(_('a date time field'), sf_field_name='A_DateTime__c')
class DateTimeModel(hc_models.HerokuConnectModel): sf_access = hc_models.READ_WRITE sf_object_name = "DateTime_Object__c" a_datetime = hc_models.DateTime(_("a date time field"), sf_field_name="A_DateTime__c")
class MyReadOnlyModel(hc_models.HerokuConnectModel): sf_object_name = "My_Object__c" date = hc_models.DateTime(sf_field_name="Date1__c") class Meta: app_label = "test"
class DateMixin(models.Model): date = hc_models.DateTime(sf_field_name="Date__c") class Meta: app_label = "test" abstract = True