Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # С этими моделями всё нормально
- class Reaction(models.Model):
- reaction = models.TextField(blank=True)
- class Catalyst(models.Model):
- reaction = models.OneToOneField(Reaction)
- name = models.TextField(blank=True)
- composition = models.TextField(blank=True)
- sketch = models.TextField(blank=True)
- class Characteristic(models.Model):
- reaction = models.OneToOneField(Reaction)
- activity_rate = models.FloatField(default=0)
- life_time_min = models.FloatField(default=0)
- life_time_max = models.FloatField(default=0)
- surf_area = models.FloatField(default=0)
- class Comment(models.Model):
- reaction = models.OneToOneField(Reaction)
- comment = models.TextField(blank=True)
- class Condition(models.Model):
- reaction = models.OneToOneField(Reaction)
- temp_min = models.FloatField()
- temp_max = models.FloatField()
- pressure_min = models.FloatField()
- pressure_max = models.FloatField()
- space_velocity_min = models.FloatField()
- space_velocity_max = models.FloatField()
- # А вот с этими нет
- class Product:
- reaction = models.ForeignKey(Reaction)
- formula = models.TextField(blank=True)
- product = models.TextField(blank=True)
- product_upac = models.TextField(blank=True)
- casn_r = models.CharField(max_length=30, blank=True)
- sketch = models.TextField(blank=True)
- selectivity_min = models.FloatField()
- selectivity_max = models.FloatField()
- yield_min = models.FloatField()
- yield_max = models.FloatField()
- ee_min = models.FloatField()
- ee_max = models.FloatField()
- dr_min = models.FloatField()
- dr_max = models.FloatField()
- class Reactant:
- reaction = models.ForeignKey(Reaction)
- formula = models.TextField(blank=True)
- reactant = models.TextField(blank=True)
- reactant_upac = models.TextField(blank=True)
- casn_r = models.CharField(max_length=30, blank=True)
- sketch = models.TextField(blank=True)
- activity_conversion_min = models.FloatField()
- activity_conversion_max = models.FloatField()
- class Reference:
- reaction = models.OneToOneField(Reaction)
- authors = models.TextField(blank=True)
- literature = models.TextField(blank=True)
- title = models.TextField(blank=True)
- year = models.IntegerField(max_length=4, blank=True)
- volume = models.CharField(max_length=30, blank=True)
- issn_isbn = models.CharField(max_length=100, blank=True)
- publisher = models.TextField(blank=True)
- no_issue = models.CharField(max_length=30, blank=True)
- pages = models.CharField(max_length=30, blank=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement