Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Robert
Commoning Engine
Commits
9b9ced61
Commit
9b9ced61
authored
Jun 14, 2020
by
Robert
Browse files
Add basic Need model
parent
a7a2a060
Changes
2
Hide whitespace changes
Inline
Side-by-side
commoning/migrations/0001_initial.py
0 → 100644
View file @
9b9ced61
# Generated by Django 2.2.13 on 2020-06-14 11:17
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
initial
=
True
dependencies
=
[
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Need'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'title'
,
models
.
CharField
(
max_length
=
255
)),
(
'description'
,
models
.
TextField
()),
(
'creation_time'
,
models
.
DateTimeField
(
auto_now_add
=
True
)),
],
),
]
commoning/models.py
View file @
9b9ced61
from
django.db
import
models
# Create your models here.
class
Need
(
models
.
Model
):
title
=
models
.
CharField
(
max_length
=
255
)
description
=
models
.
TextField
()
creation_time
=
models
.
DateTimeField
(
auto_now_add
=
True
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment