diff --git a/rentals/forms.py b/rentals/forms.py index 0b15179..911fb06 100644 --- a/rentals/forms.py +++ b/rentals/forms.py @@ -3,14 +3,7 @@ from django import forms from rentals.models import LockerInfo -class BoostrapModelForm(forms.ModelForm): - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) - for field in self.fields.values(): - field.widget.attrs["class"] = "form-control" - - -class LockerInfoForm(BoostrapModelForm): +class LockerInfoForm(forms.ModelForm): class Meta: model = LockerInfo fields = [ diff --git a/rentals/templates/rentals/lockers.dj.html b/rentals/templates/rentals/lockers.dj.html index 4625504..152a9cb 100644 --- a/rentals/templates/rentals/lockers.dj.html +++ b/rentals/templates/rentals/lockers.dj.html @@ -1,5 +1,7 @@ {% extends "base.dj.html" %} +{% load widget_tweaks %} + {% block title %}Lockers Index{% endblock %} {% block admin_link %} {% url 'admin:app_list' 'rentals' %} @@ -81,7 +83,7 @@