feat: implement address normalization and demo
- Add utility to parse raw address strings into structured Province, District, and Municipality data. - Support both English and Nepali (Devanagari) inputs with smart matching for character variations. - Implement comprehensive test suite for address normalization logic. - Add real-time address normalization demo to the example app using HTMX. - Update README with documentation and usage examples for the new utility.
This commit is contained in:
11 files changed
+322
-33
No files matched your search
@@ -15,7 +15,9 @@ class PersonSerializer(NepaliLocalizedSerializerMixin, serializers.ModelSerializ
|
||||
fields = "__all__"
|
||||
|
||||
|
||||
class TransactionSerializer(NepaliLocalizedSerializerMixin, serializers.ModelSerializer):
|
||||
class TransactionSerializer(
|
||||
NepaliLocalizedSerializerMixin, serializers.ModelSerializer
|
||||
):
|
||||
amount_formatted = NepaliCurrencySerializerField(source="amount")
|
||||
|
||||
class Meta:
|
||||
|
||||
Reference in new issue
Block a user