Add django rest framework and basic plant model

- Adds django rest framework to requirements
- Adds basic plant model with id and name fields
- Adds CRUD endpoints to interact with plant objects
This commit is contained in:
Dana Lambert 2021-10-07 08:59:57 +13:00
parent aedd224a63
commit bb307d34d2
12 changed files with 68 additions and 2 deletions

View file

@ -0,0 +1,21 @@
# Generated by Django 3.2.8 on 2021-10-06 18:32
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Plant',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.TextField()),
],
),
]