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:
@@ -1,61 +0,0 @@
|
||||
# Generated by Django 5.2.3 on 2025-06-25 12:33
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
("common", "0001_initial"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name="BookingModel",
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
models.BigAutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("number", models.CharField(max_length=50, unique=True)),
|
||||
("vehicles", models.CharField(blank=True, null=True)),
|
||||
("container_count", models.IntegerField()),
|
||||
("carrier", models.CharField(blank=True, max_length=100, null=True)),
|
||||
("visible", models.BooleanField(default=True)),
|
||||
("is_new", models.BooleanField(default=True)),
|
||||
(
|
||||
"container_number",
|
||||
models.CharField(blank=True, max_length=11, null=True),
|
||||
),
|
||||
("vehicles_left", models.IntegerField(blank=True, null=True)),
|
||||
("created_on", models.DateTimeField(auto_now_add=True)),
|
||||
("created_by", models.IntegerField()),
|
||||
("updated_on", models.DateTimeField(auto_now=True)),
|
||||
("updated_by", models.IntegerField()),
|
||||
(
|
||||
"container_type",
|
||||
models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
related_name="booking_container_types",
|
||||
to="common.containertypemodel",
|
||||
),
|
||||
),
|
||||
(
|
||||
"line",
|
||||
models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
related_name="booking_lines",
|
||||
to="common.linesmodel",
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
]
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
from django.db import models
|
||||
from common.models import ContainerTypeModel, LinesModel, OperationModel, PayerModel
|
||||
from common.models import ContainerTypeModel, LinesModel, OperationModel
|
||||
|
||||
# Create your models here.
|
||||
class BookingModel(models.Model):
|
||||
|
||||
@@ -1,3 +1,14 @@
|
||||
from django.shortcuts import render
|
||||
from django.views.generic import CreateView
|
||||
|
||||
|
||||
# Create your views here.
|
||||
class CreateBookingView(CreateView):
|
||||
template_name = 'create-booking.html'
|
||||
extra_context = {
|
||||
'title': 'Create Booking',
|
||||
'description': 'This is the create booking page.',
|
||||
}
|
||||
|
||||
def get(self, request, *args, **kwargs):
|
||||
return render(request, self.template_name, self.extra_context)
|
||||
Reference in New Issue
Block a user