Пример #1
0
 def add_field(self, field):
     """
     Dynamically add a field.
     """
     self.fields.append(field)
     if field.key:
         self._add_key_field(field)
     cached_property.clear_caches(self)
Пример #2
0
 def add_field(self, field):
     """
     Dynamically add a field.
     """
     self.fields.append(field)
     if field.key:
         self._add_key_field(field)
     cached_property.clear_caches(self)
Пример #3
0
 def add_virtual_field(self, field):
     self.virtual_fields.append(field)
     cached_property.clear_caches(self)
Пример #4
0
 def add_virtual_field(self, field):
     self.virtual_fields.append(field)
     cached_property.clear_caches(self)
Пример #5
0
 def add_field(self, field):
     self.fields.append(field)
     if field.key:
         self._add_key_field(field)
     cached_property.clear_caches(self)