Simple project, in which it is possible to make a report to a specific location
-
planned upcoming Features:
-- [ ] Recursive Categories
-- [ ] User Management
- - User can be grouped
- - Groups have change access to categories
- - maybe groups enable creation of subcategories
-- [ ] Sending Mails
+- [ ] Hierarchical Categories
+ - [ ] Recursive Categories
+- [ ] User Management
+ - User can be grouped
+ - Groups have change access to categories
+ - maybe groups enable creation of subcategories
+- [ ] Sending Mails
- [ ] Open311 Compliance
-
+- [ ] Tests
--- /dev/null
+from django.forms import ModelForm
+
+from .models import Report
+
+
+class ReportForm(ModelForm):
+ class Meta:
+ model = Report
+ fields = ["title", "description", "latitude", "longitude", "category"]
from asyncio import wait
from django.db import models
-from django.forms import ModelForm
# Create your models here.
#
def __str__(self):
return self.title
-
-
-class ReportForm(ModelForm):
- class Meta:
- model = Report
- fields = ["title", "description", "latitude", "longitude", "category"]
# Create your views here.
-from .models import Category, Report, ReportForm
+from .models import Category, Report
+from .forms import ReportForm
def index(request):