Add IntelliJ IDEA project configuration files

This commit adds IntelliJ IDEA-specific configuration files for the project, including module setup, version control integration, inspection profiles, and workspace settings. These files facilitate development environment configuration for contributors using IntelliJ IDEA.
This commit is contained in:
2025-06-30 18:06:35 +03:00
parent 72e0fc963c
commit daba5a8438
51 changed files with 2686 additions and 1377 deletions
+24
View File
@@ -0,0 +1,24 @@
from django.forms import ModelForm
from django.urls import reverse_lazy
from preinfo.models import Preinfo
class PreinfoBaseForm(ModelForm):
class Meta:
model = Preinfo
fields = '__all__'
# success_url = reverse_lazy('client_preinfo')
class PreinfoCreateForm(PreinfoBaseForm):
"""
Form for creating a new PreinfoModel instance.
Inherits from PreinfoBaseForm.
"""
class Meta(PreinfoBaseForm.Meta):
exclude = ['created_on',
'created_by',
'deleted',
'deleted_on',
'deleted_by',
'received'] # Exclude fields that should not be set by the user