from django.db import models

# Create your models here.
class Mineral(models.Model):
    UNIT_TYPE = (
        ('mg', 'miligram'),
        ('μg', 'mikrogram'),
    )
    mineral_name = models.CharField(max_length=150)
    mineral_symbol = models.CharField(max_length=50)
    mineral_unit = models.CharField(max_length=10, choices=UNIT_TYPE)
    mineral_recomended_consuption = models.DecimalField(max_digits=7, decimal_places=3)

    def __str__(self):
        return f'{self.mineral_name} [{self.mineral_unit}]'

    class Meta:
        verbose_name = 'Minerał'
        verbose_name_plural = 'Minerały'
0720391e108eee2ac3d99af6c31e80cf58b14542
<mask token>


class Mineral(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


    class Meta:
        verbose_name = 'Minerał'
        verbose_name_plural = 'Minerały'

<mask token>


class Mineral(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __str__(self):
        return f'{self.mineral_name} [{self.mineral_unit}]'


    class Meta:
        verbose_name = 'Minerał'
        verbose_name_plural = 'Minerały'

<mask token>


class Mineral(models.Model):
    UNIT_TYPE = ('mg', 'miligram'), ('μg', 'mikrogram')
    mineral_name = models.CharField(max_length=150)
    mineral_symbol = models.CharField(max_length=50)
    mineral_unit = models.CharField(max_length=10, choices=UNIT_TYPE)
    mineral_recomended_consuption = models.DecimalField(max_digits=7,
        decimal_places=3)

    def __str__(self):
        return f'{self.mineral_name} [{self.mineral_unit}]'


    class Meta:
        verbose_name = 'Minerał'
        verbose_name_plural = 'Minerały'

from django.db import models


class Mineral(models.Model):
    UNIT_TYPE = ('mg', 'miligram'), ('μg', 'mikrogram')
    mineral_name = models.CharField(max_length=150)
    mineral_symbol = models.CharField(max_length=50)
    mineral_unit = models.CharField(max_length=10, choices=UNIT_TYPE)
    mineral_recomended_consuption = models.DecimalField(max_digits=7,
        decimal_places=3)

    def __str__(self):
        return f'{self.mineral_name} [{self.mineral_unit}]'


    class Meta:
        verbose_name = 'Minerał'
        verbose_name_plural = 'Minerały'

from django.db import models

# Create your models here.
class Mineral(models.Model):
    UNIT_TYPE = (
        ('mg', 'miligram'),
        ('μg', 'mikrogram'),
    )
    mineral_name = models.CharField(max_length=150)
    mineral_symbol = models.CharField(max_length=50)
    mineral_unit = models.CharField(max_length=10, choices=UNIT_TYPE)
    mineral_recomended_consuption = models.DecimalField(max_digits=7, decimal_places=3)

    def __str__(self):
        return f'{self.mineral_name} [{self.mineral_unit}]'

    class Meta:
        verbose_name = 'Minerał'
        verbose_name_plural = 'Minerały'