feat: add Nepali currency field, number to words, and unicode helpers

This commit is contained in:
sankalp committed 2026-01-30 19:50:26 +05:45
1 parent 2fea4d6db1
commit e606a2b490
14 files changed
+347 -12

No files matched your search

+10
View File
@@ -7,6 +7,7 @@ from django_nepkit import (
ProvinceField,
DistrictField,
MunicipalityField,
NepaliCurrencyField,
)
@@ -52,3 +53,12 @@ class AuditedPerson(models.Model):
def __str__(self):
return self.name
class Transaction(models.Model):
title = models.CharField(max_length=100)
amount = NepaliCurrencyField()
date = NepaliDateField(auto_now_add=True)
def __str__(self):
return f"{self.title} - {self.amount}"