File: 0002_offsetunitfloatfieldsavemodel.py

package info (click to toggle)
python-django-pint 0.7.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 432 kB
  • sloc: python: 1,531; makefile: 28; sh: 12
file content (38 lines) | stat: -rw-r--r-- 1,018 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Generated by Django 4.2.5 on 2023-09-25 08:24

from django.db import migrations, models

import quantityfield.fields


class Migration(migrations.Migration):
    dependencies = [
        ("dummyapp", "0001_initial"),
    ]

    operations = [
        migrations.CreateModel(
            name="OffsetUnitFloatFieldSaveModel",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("name", models.CharField(max_length=20)),
                (
                    "weight",
                    quantityfield.fields.QuantityField(
                        base_units="degC", unit_choices=["degC"]
                    ),
                ),
            ],
            options={
                "abstract": False,
            },
        ),
    ]