Django Makemigrations Omits Some Fields From Model
In my django app I've created a model like that: class Plan_miesieczny_aktualny(models.Model): id = models.CharField(max_length=30, primary_key=True) pozycja_planu = models
Solution 1:
You should always declare fields calling fields class constructor:
miesiac = models.IntegerField()
liczba = models.DecimalField(max_digits=5, decimal_places=2)
cena = models.DecimalField(max_digits=5, decimal_places=2)
Baca Juga
- Return Database_name == ':memory:' Or 'mode=memory' In Database_name Typeerror: Argument Of Type 'windowspath' Is Not Iterable
- Return Database_name == ':memory:' Or 'mode=memory' In Database_name TypeError: Argument Of Type 'WindowsPath' Is Not Iterable
- Transform Irregular Quadrilateral To Rectangle In Python Matplotlib
Post a Comment for "Django Makemigrations Omits Some Fields From Model"