Пример #1
0
        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
Пример #2
0
        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
Пример #3
0
        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
Пример #4
0
        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
Пример #5
0
        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
Пример #6
0
        class DateMixin(models.Model):
            date = hc_models.DateTime(sf_field_name='Date__c')

            class Meta:
                app_label = 'test'
                abstract = True
Пример #7
0
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')
Пример #8
0
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")
Пример #9
0
        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"
Пример #10
0
        class DateMixin(models.Model):
            date = hc_models.DateTime(sf_field_name="Date__c")

            class Meta:
                app_label = "test"
                abstract = True