You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As an extended package of 'nepali', we need to create a new field called NepaliDateField in Django that supports Nepali dates. This field will be used in both Django models and forms.
Filtering should be done by both Python's date and nepalidate. Also, user should be able to filter with nepali date's year, month, or day.
# filtering with nepalidateMyNepaliInfo.objects.filter(birthday=nepalidate(2051, 2, 29))
# filtering with Python's dateMyNepaliInfo.objects.filter(birthday=date(1994, 8, 13)
# date range filteringMyNepaliInfo.objects.filter(birthday__range=(nepalidate1, nepalidate2))
MyNepaliInfo.objects.filter(birthday__gt=nepalidate1)
# Filtering with Nepali year, same goes for the month and dayMyNepaliInfo.objects.filter(birthday__year=2051)
# Filtering with English yearMyNepaliInfo.objects.filter(birthday__year_en=1994)
As an extended package of 'nepali', we need to create a new field called NepaliDateField in Django that supports Nepali dates. This field will be used in both Django models and forms.
Model Usage
Initialization
Saving data
This field will support both Python's date and nepalidate.
Filtering
Filtering should be done by both Python's date and nepalidate. Also, user should be able to filter with nepali date's year, month, or day.
Form Usage
Initialization
...
The text was updated successfully, but these errors were encountered: