Closed TasfiqulGhani closed 2 weeks ago
@TasfiqulGhani @skfarhad Hi! I am working on #38 to create a database for admin boundaries using the model in address.py.
I was looking at the database table structure in address.py. I noticed that it is missing Upazila, which is the admin level between District and Thana. I'm not sure if it is intended. We can create relationships even if we skip this level but I wanted to bring this to your attention nonetheless.
If you want, I can add it to the model in address.py and update the foreign keys accordingly. Let me know.
Here are the official admin levels from the latest available shapefiles.
adm = Administration Regions
@TasfiqulGhani @skfarhad Hi! I am working on #38 to create a database for admin boundaries using the model in address.py.
I was looking at the database table structure in address.py. I noticed that it is missing Upazila, which is the admin level between District and Thana. I'm not sure if it is intended. We can create relationships even if we skip this level but I wanted to bring this to your attention nonetheless.
If you want, I can add it to the model in address.py and update the foreign keys accordingly. Let me know.
Here are the official admin levels from the latest available shapefiles.
adm = Administration Regions
- adm0 = Entire Bangladesh
- adm1 = 8 Divisions
- adm2 = 64 Districts/Zilas
- adm3 = 544 Upazilas
- adm4 = 5160 Thanas/Unions
@dg1223 you may add a new column Upazila
. And, is Union goin to be one level higher than corresponding Thana? Or they are in the same admin level?
@TasfiqulGhani @skfarhad Hi! I am working on #38 to create a database for admin boundaries using the model in address.py. I was looking at the database table structure in address.py. I noticed that it is missing Upazila, which is the admin level between District and Thana. I'm not sure if it is intended. We can create relationships even if we skip this level but I wanted to bring this to your attention nonetheless. If you want, I can add it to the model in address.py and update the foreign keys accordingly. Let me know. Here are the official admin levels from the latest available shapefiles. adm = Administration Regions
- adm0 = Entire Bangladesh
- adm1 = 8 Divisions
- adm2 = 64 Districts/Zilas
- adm3 = 544 Upazilas
- adm4 = 5160 Thanas/Unions
@dg1223 you may add a new column
Upazila
. And, is Union goin to be one level higher than corresponding Thana? Or they are in the same admin level?
@skfarhad Union and Thana are at the same level.
Summary
This PR introduces three new models to the project:
Division
,District
, andThana
. These models are designed to represent geographical divisions with associated polygon data.Changes:
Admin Panel Enhancements:
Division
,District
, andThana
models in the Django admin panel.Additional Notes: