#How would I make a model for a habit.

3 messages · Page 1 of 1 (latest)

astral tulip
#

Will get reset everyday and can be checked as complete and uncomplete.

idle coyote
#

I would probably have a foreign key from a HabitDay table to a Habit table. The HabitDay table would have a datetime field, is_completed boolean and perhaps a notes field.

A row would be added to the HabitDay table each day and then marked as is_completed if the habit is completed.

scarlet ocean
#

I'd think just a CharField named "description", and a BooleanField named "complete".