Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
bc5440b
Model Changes
Phoenix009 Jul 12, 2021
049e9e9
updated requirements.txt
RUiNtheExtinct Jul 12, 2021
3659ebb
models serializer added
mustankap Jul 12, 2021
7bbe0da
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
mustankap Jul 12, 2021
3da0131
update gitignore and add db.sqlite3
RUiNtheExtinct Jul 12, 2021
f4b5260
Basic API routes
Phoenix009 Jul 12, 2021
774e405
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
Phoenix009 Jul 12, 2021
4e2cf6d
mustankap Jul 12, 2021
2e8a30c
User Serializers and Views
Phoenix009 Jul 13, 2021
bdd75f2
cosmetic changes
RUiNtheExtinct Jul 13, 2021
1d75eed
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
RUiNtheExtinct Jul 13, 2021
b26b958
branch crud
mustankap Jul 13, 2021
d41dc09
region and branch serializers
RUiNtheExtinct Jul 13, 2021
5dbf8e9
Merge branches 'features' and 'features' of https://github.com/mustan…
RUiNtheExtinct Jul 13, 2021
7de8f6f
changes in views
mustankap Jul 13, 2021
ebc5e36
Branch and Region Views and urls
RUiNtheExtinct Jul 13, 2021
0a38b73
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
mustankap Jul 13, 2021
7d03298
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
mustankap Jul 13, 2021
7c0c1a3
updated requirements.txt
RUiNtheExtinct Jul 13, 2021
ed32a04
Filters
Phoenix009 Jul 13, 2021
f21898f
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
Phoenix009 Jul 13, 2021
48a7b05
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
mustankap Jul 13, 2021
be0ef93
changes
mustankap Jul 13, 2021
779f826
added filters
RUiNtheExtinct Jul 13, 2021
1330bdd
mustankap Jul 13, 2021
ff9ff09
added CRUD for gunmen and vendors
RUiNtheExtinct Jul 13, 2021
271239f
updated filters
RUiNtheExtinct Jul 13, 2021
f7e9c18
update
mustankap Jul 13, 2021
6de7a9d
added filters
mustankap Jul 13, 2021
7fcaa4f
CRUD on nested serializers
RUiNtheExtinct Jul 13, 2021
0462ece
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
RUiNtheExtinct Jul 13, 2021
868d7d1
import headers
RUiNtheExtinct Jul 13, 2021
0809b49
import filter mod
mustankap Jul 13, 2021
6f8e5a8
update
mustankap Jul 13, 2021
c3c562b
added and updated serializers
RUiNtheExtinct Jul 13, 2021
a9166d8
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
RUiNtheExtinct Jul 13, 2021
95382a2
user serializer and model updates
Phoenix009 Jul 13, 2021
8a854b9
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
Phoenix009 Jul 13, 2021
14b8a3a
Serializers update
Phoenix009 Jul 13, 2021
4d85872
add cors to settings
Jul 14, 2021
b56bc51
update
Jul 14, 2021
2dccc5c
nm
RUiNtheExtinct Jul 14, 2021
40781e0
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
RUiNtheExtinct Jul 14, 2021
28ce552
upadte settings.py
RUiNtheExtinct Jul 14, 2021
1ea79bb
update ProfileSerializer
RUiNtheExtinct Jul 14, 2021
92e285f
update attendance api
RUiNtheExtinct Jul 14, 2021
78083e1
Attendance redundant update removed
Phoenix009 Jul 14, 2021
18e93ce
nm
RUiNtheExtinct Jul 14, 2021
61ba516
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
RUiNtheExtinct Jul 14, 2021
18f483e
Issue CRUD routes
Phoenix009 Jul 14, 2021
563cb4f
issue urls
Phoenix009 Jul 14, 2021
a5cc4ba
nm
RUiNtheExtinct Jul 14, 2021
4406c6f
Vehicle Model Added
Phoenix009 Jul 14, 2021
d30d3a4
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
RUiNtheExtinct Jul 14, 2021
aec5e9a
nm
RUiNtheExtinct Jul 14, 2021
43deafd
nm
RUiNtheExtinct Jul 14, 2021
2e55814
added pagination and user search filters
RUiNtheExtinct Jul 14, 2021
948b59f
time query range filter
mustankap Jul 15, 2021
fa1c482
added user create and update for nested serializers
RUiNtheExtinct Jul 15, 2021
5088cb6
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
RUiNtheExtinct Jul 15, 2021
13fdbad
debugging
RUiNtheExtinct Jul 15, 2021
4151822
Generate password and send mail
Phoenix009 Jul 16, 2021
4a6fcfb
simplify update
Phoenix009 Jul 16, 2021
b4ee2cf
nm
RUiNtheExtinct Jul 16, 2021
d6b80d1
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
RUiNtheExtinct Jul 16, 2021
65f6b60
attendance date range filtering
Phoenix009 Jul 16, 2021
001436e
nm
RUiNtheExtinct Jul 16, 2021
d1af44d
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
RUiNtheExtinct Jul 16, 2021
0025b82
date- range
mustankap Jul 16, 2021
505fe6e
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
mustankap Jul 16, 2021
b4b10e5
Bulk Update
Phoenix009 Jul 16, 2021
4274d0c
cm
RUiNtheExtinct Jul 16, 2021
8eb9794
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
RUiNtheExtinct Jul 16, 2021
15d06af
views
mustankap Jul 16, 2021
535a305
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
mustankap Jul 16, 2021
5516a58
update models
RUiNtheExtinct Jul 19, 2021
0e8f3f8
resolving conflict
mustankap Jul 19, 2021
87cdd5b
trip model
mustankap Jul 19, 2021
b081e19
Custodian and Trip models Update
Phoenix009 Jul 19, 2021
d148b62
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
Phoenix009 Jul 19, 2021
0f49f9d
models update
Phoenix009 Jul 19, 2021
77a8e2a
Added Custodian Serializer
RUiNtheExtinct Jul 19, 2021
01c5d3d
views for Trip and Custodian
Phoenix009 Jul 19, 2021
a2b915e
Added custodian serializeer
RUiNtheExtinct Jul 19, 2021
f8d6cf9
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
RUiNtheExtinct Jul 19, 2021
0312707
changes
mustankap Jul 19, 2021
0e9a7de
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
mustankap Jul 19, 2021
6ed2dd6
update filterfields etc.
RUiNtheExtinct Jul 19, 2021
805388e
upadte
RUiNtheExtinct Jul 19, 2021
9268df6
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
mustankap Jul 19, 2021
3d67ddc
nm
RUiNtheExtinct Jul 19, 2021
e037717
custodian code
Phoenix009 Jul 20, 2021
8ee32d9
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
mustankap Jul 20, 2021
f297aec
views for Trips
Phoenix009 Jul 20, 2021
f77e7d8
nm
RUiNtheExtinct Jul 20, 2021
743bdf3
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
RUiNtheExtinct Jul 20, 2021
42e32b2
nm
RUiNtheExtinct Jul 20, 2021
4fda84d
custodians and serializers
mustankap Jul 20, 2021
42a0189
custodians and serializers
mustankap Jul 20, 2021
4653f7c
trip create successful
Phoenix009 Jul 20, 2021
10c92bb
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
Phoenix009 Jul 20, 2021
2a88e8d
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
RUiNtheExtinct Jul 20, 2021
551d028
Trip Update
Phoenix009 Jul 20, 2021
f64a796
custodian hack
RUiNtheExtinct Jul 20, 2021
07b965a
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
RUiNtheExtinct Jul 20, 2021
edd68c1
attendance hack
RUiNtheExtinct Jul 20, 2021
0e72719
nm
RUiNtheExtinct Jul 20, 2021
b4d5983
Co-authored-by: RUiNtheExtinct <[email protected]>
mustankap Jul 20, 2021
b924113
update
mustankap Jul 20, 2021
f7a2da2
added Attendance Vehicle model
RUiNtheExtinct Jul 21, 2021
80d777c
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
RUiNtheExtinct Jul 21, 2021
a663e49
nm
RUiNtheExtinct Jul 21, 2021
f474106
checkin and checkout
RUiNtheExtinct Jul 21, 2021
ef0005d
Attendance Vehicle models, views and urls
Phoenix009 Jul 21, 2021
6f4814a
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
Phoenix009 Jul 21, 2021
98040a8
checking celery
mustankap Jul 21, 2021
63b5772
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
mustankap Jul 21, 2021
809ec77
no need of celery using django-crontab
mustankap Jul 21, 2021
173167f
update
mustankap Jul 21, 2021
9844ebd
update attendance checks
RUiNtheExtinct Jul 21, 2021
6fe5829
Queryset to CSV file
Phoenix009 Jul 21, 2021
7e0e06a
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
Phoenix009 Jul 21, 2021
d350fcf
scheduled updates
Phoenix009 Jul 21, 2021
e692d65
prettify backend code
RUiNtheExtinct Jul 21, 2021
ae54c4e
update requirements.txt
RUiNtheExtinct Jul 21, 2021
05d72be
remove .vscode and update gitignore
RUiNtheExtinct Jul 21, 2021
a6c740e
Create LICENSE
RUiNtheExtinct Jul 21, 2021
ca2a9ef
vehicle csv
RUiNtheExtinct Jul 21, 2021
14f4ac8
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
mustankap Jul 21, 2021
e65a27d
req
vedant-kokate Jul 22, 2021
afebe9b
update requirements.txt
RUiNtheExtinct Jul 22, 2021
13fc238
automated mails for report
Phoenix009 Jul 22, 2021
8cbc618
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
Phoenix009 Jul 22, 2021
98834bd
current user route
Phoenix009 Jul 23, 2021
4472fe8
current user route
Phoenix009 Jul 23, 2021
2c1f9d5
updates
Phoenix009 Jul 23, 2021
b775e11
update settings.py
RUiNtheExtinct Jul 23, 2021
3898ea5
auth and current user details view
Phoenix009 Jul 23, 2021
8ae3e2e
Merge branch 'features' of https://github.com/mustankap/CMS into feat…
Phoenix009 Jul 23, 2021
8e179ae
Use Generic Class Based views
Phoenix009 Oct 23, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
*.pyc
__pycache__/
local_settings.py
db.sqlite3
db.sqlite3-journal
# db.sqlite3
# db.sqlite3-journal
media
csvstorage/

# If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/
# in your Git repository. Update and uncomment the following line accordingly.
Expand Down Expand Up @@ -167,7 +168,6 @@ sketch

# End of https://www.toptal.com/developers/gitignore/api/django,react
{"mode":"full","isActive":false}
<<<<<<< HEAD
/client/node_modules

# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
Expand All @@ -194,6 +194,6 @@ sketch
npm-debug.log*
yarn-debug.log*
yarn-error.log*
=======
client/node_modules
>>>>>>> 41c413222912585d191bff8f01499aa1ade3307f
/requests.txt
/requests.http
/.vscode
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[packages]

[dev-packages]

[requires]
python_version = "3.8"
1 change: 1 addition & 0 deletions requests.http
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PUT http://localhost:8000/api/users/user HTTP/1.1
Empty file added server/api/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions server/api/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
5 changes: 5 additions & 0 deletions server/api/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.apps import AppConfig


class ApiConfig(AppConfig):
name = 'api'
Empty file.
3 changes: 3 additions & 0 deletions server/api/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
3 changes: 3 additions & 0 deletions server/api/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.test import TestCase

# Create your tests here.
3 changes: 3 additions & 0 deletions server/api/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.shortcuts import render

# Create your views here.
51 changes: 41 additions & 10 deletions server/attendance/admin.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,55 @@
from django.contrib import admin

from .models import *
from .models import *


class TripAdmin(admin.ModelAdmin):
list_display = (
"id",
"vehicle",
"custodian_1",
"custodian_2",
"custodian_3",
"entry_time",
"exit_time",
"start_location",
"end_location",
"branch_id",
"added_by",
)
list_display_links = ("id", "custodian_1", "custodian_2", "custodian_3")
search_fields = ("id", "vehicle", "custodian_1", "custodian_2", "custodian_3")
list_per_page = 20


class AttendanceSheetAdmin(admin.ModelAdmin):
list_display = ('id', 'sheet_created')
list_display_links = ('id', 'sheet_created')
list_display = ("id", "sheet_created")
list_display_links = ("id", "sheet_created")
list_per_page = 20


class AttendanceAdmin(admin.ModelAdmin):
list_display = ('id', 'first_name', 'last_name','entry_time', 'exit_time', 'vendor', 'branch_id')
list_display_links = ('id', 'first_name', 'last_name')
search_fields = ('first_name', 'last_name','vendor')
list_per_page = 20
list_display = ("id", "custodian", "entry_time", "exit_time", "branch_id")
list_display_links = ("id", "custodian")
search_fields = ("custodian",)
list_per_page = 20


class AttendanceVehicleAdmin(admin.ModelAdmin):
list_display = ("id", "vehicle", "entry_time", "exit_time", "branch_id")
list_display_links = ("id", "vehicle")
search_fields = ("vehicle",)
list_per_page = 20


class IssueAdmin(admin.ModelAdmin):
list_display = ('id', 'comment', 'vendor', 'reverted_by', 'sheet', 'created_at')
list_display_links = ('id','comment')
list_per_page = 20
list_display = ("id", "comment", "vendor", "reverted_by", "sheet", "created_at")
list_display_links = ("id", "comment")
list_per_page = 20


admin.site.register(Attendance, AttendanceAdmin)
admin.site.register(AttendanceVehicle, AttendanceVehicleAdmin)
admin.site.register(Trip, TripAdmin)
admin.site.register(AttendanceSheet, AttendanceSheetAdmin)
admin.site.register(Issue, IssueAdmin)
2 changes: 1 addition & 1 deletion server/attendance/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


class AttendanceConfig(AppConfig):
name = 'attendance'
name = "attendance"
73 changes: 73 additions & 0 deletions server/attendance/cron.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
from attendance.models import Attendance, AttendanceVehicle
from vendors.models import Vendor
from attendance.utils import qs_to_local_csv
from django.conf import settings
from datetime import datetime

from django.core.mail import EmailMessage

BASE_DIR = settings.BASE_DIR


def send_attendance_report():
today = datetime.today()

for vendor in Vendor.objects.all():
attendance_custodian = Attendance.objects.filter(
custodian__vendor = vendor,
entry_time__month = today.month,
entry_time__year = today.year,
).order_by('entry_time').all()

if attendance_custodian:
attendance_custodian_path = qs_to_local_csv(
attendance_custodian,
fields=[
"id",
"custodian__first_name",
"custodian__last_name",
"entry_time",
"exit_time",
],
)

mail = EmailMessage(
subject= f"Monthly Custodian Attendance Report: {today.strftime('%B %Y')}",
body= f"PFA the attendance reports for the custodians for {today.strftime('%B %Y')}",
from_email= settings.EMAIL_HOST_USER,
to=[vendor.email]
)

attendance_file = open(attendance_custodian_path)
mail.attach(f"attendance_report_{ today.strftime('%B_%Y') }.csv", attendance_file.read())
mail.send()


attendance_vehicle = AttendanceVehicle.objects.filter(
custodian__vendor = vendor,
entry_time__month = today.month,
entry_time__year = today.year,
).order_by('entry_time').all()

if attendance_vehicle:
attendance_vehicle_path = qs_to_local_csv(
attendance_vehicle,
fields=[
"id",
"vehicle__model_name",
"custodian__number_plate",
"entry_time",
"exit_time",
],
)

mail = EmailMessage(
subject= f"Monthly Vehicle Attendance Report: {today.strftime('%B %Y')}",
body= f"PFA the attendance reports for the vehicles for {today.strftime('%B %Y')}",
from_email= settings.EMAIL_HOST_USER,
to=[vendor.email]
)

attendance_file = open(attendance_vehicle_path)
mail.attach(attendance_file.name, attendance_file.read())
mail.send()
41 changes: 41 additions & 0 deletions server/attendance/migrations/0002_auto_20210712_1636.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Generated by Django 3.0.4 on 2021-07-12 16:36

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
('vendors', '0001_initial'),
('attendance', '0001_initial'),
]

operations = [
migrations.RemoveField(
model_name='attendance',
name='first_name',
),
migrations.RemoveField(
model_name='attendance',
name='last_name',
),
migrations.RemoveField(
model_name='attendance',
name='vendor',
),
migrations.CreateModel(
name='Gunmen',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('first_name', models.CharField(max_length=200)),
('last_name', models.CharField(max_length=200)),
('vendor', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='vendors.Vendor')),
],
),
migrations.AddField(
model_name='attendance',
name='gunmen',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='attendance.Gunmen'),
),
]
23 changes: 23 additions & 0 deletions server/attendance/migrations/0003_auto_20210712_1712.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 3.0.4 on 2021-07-12 17:12

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
('vendors', '0002_gunmen'),
('attendance', '0002_auto_20210712_1636'),
]

operations = [
migrations.AlterField(
model_name='attendance',
name='gunmen',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='vendors.Gunmen'),
),
migrations.DeleteModel(
name='Gunmen',
),
]
36 changes: 36 additions & 0 deletions server/attendance/migrations/0004_trip.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Generated by Django 3.0.4 on 2021-07-19 17:44

import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
('users', '0006_auto_20210715_1609'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('vendors', '0005_custodian'),
('attendance', '0003_auto_20210712_1712'),
]

operations = [
migrations.CreateModel(
name='Trip',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('trip_code', models.CharField(blank=True, max_length=6, null=True)),
('entry_time', models.DateTimeField(default=datetime.datetime.now)),
('exit_time', models.DateTimeField(blank=True, null=True)),
('start_location', models.CharField(max_length=100)),
('end_location', models.CharField(max_length=100)),
('added_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
('branch', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='users.Branch')),
('custodian_1', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='custodian_1', to='vendors.Custodian')),
('custodian_2', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='custodian_2', to='vendors.Custodian')),
('custodian_3', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='custodian_3', to='vendors.Custodian')),
('vehicle', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='vendors.Vehicle')),
],
),
]
18 changes: 18 additions & 0 deletions server/attendance/migrations/0005_auto_20210719_1756.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.0.4 on 2021-07-19 17:56

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('attendance', '0004_trip'),
]

operations = [
migrations.AlterField(
model_name='trip',
name='entry_time',
field=models.DateTimeField(blank=True, null=True),
),
]
28 changes: 28 additions & 0 deletions server/attendance/migrations/0006_auto_20210720_1620.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by Django 3.0.4 on 2021-07-20 16:20

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('attendance', '0005_auto_20210719_1756'),
]

operations = [
migrations.AddField(
model_name='trip',
name='custodian_1_code',
field=models.CharField(blank=True, max_length=6, null=True),
),
migrations.AddField(
model_name='trip',
name='custodian_2_code',
field=models.CharField(blank=True, max_length=6, null=True),
),
migrations.AddField(
model_name='trip',
name='custodian_3_code',
field=models.CharField(blank=True, max_length=6, null=True),
),
]
Loading