Initial plant reference and basic login
This commit is contained in:
parent
a2dba58fe4
commit
cada3c7357
31 changed files with 637 additions and 0 deletions
21
planterteque/models.py
Normal file
21
planterteque/models.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
from django.db import models
|
||||
|
||||
class Plant(models.Model):
|
||||
name = models.CharField(max_length=512, unique=True)
|
||||
create_date = models.DateTimeField(auto_now_add=True)
|
||||
modified_date = models.DateTimeField(auto_now=True)
|
||||
botanical_name = models.CharField(max_length=2048)
|
||||
description_short = models.TextField(blank=2048)
|
||||
description_long = models.TextField(blank=True)
|
||||
growing_notes = models.TextField(blank=True)
|
||||
spread = models.IntegerField(default=0)
|
||||
height = models.IntegerField(default=0)
|
||||
sow_depth = models.IntegerField(default=0)
|
||||
spacing = models.IntegerField(default=0)
|
||||
other_notes = models.TextField(blank=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue