Skip to content

Commit

Permalink
fir_todos shall not use DateTimeLocalField: field is not editable
Browse files Browse the repository at this point in the history
through the GUI
  • Loading branch information
Augustin-FL committed Dec 26, 2024
1 parent 45226b3 commit 96efe74
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fir_todos/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
from django import forms

from incidents.models import Incident, IncidentCategory, BusinessLine, Label
from incidents.fields import DateTimeLocalField


class TodoItem(models.Model):
description = models.CharField(max_length=140)
Expand All @@ -20,8 +18,6 @@ def __str__(self):


class TodoItemForm(forms.ModelForm):
done_time = DateTimeLocalField()

def __init__(self, *args, **kwargs):
self.user = kwargs.pop('for_user', None)
super(TodoItemForm, self).__init__(*args, **kwargs)
Expand Down

0 comments on commit 96efe74

Please sign in to comment.