diff --git a/RIGS/test_functional.py b/RIGS/test_functional.py index 691f5294..81997bc1 100644 --- a/RIGS/test_functional.py +++ b/RIGS/test_functional.py @@ -94,7 +94,8 @@ class UserRegistrationTest(LiveServerTestCase): # Read what the error is alert = self.browser.find_element_by_css_selector( 'div.alert-danger').text - self.assertIn("password fields didn't match", alert) + # Note to future maintainers - mind out for smart quotes... + self.assertIn("password fields didn’t match", alert) # Passwords should be empty self.assertEqual(password1.get_attribute('value'), '') diff --git a/assets/migrations/0010_auto_20200219_1347.py b/assets/migrations/0010_auto_20200219_1444.py similarity index 83% rename from assets/migrations/0010_auto_20200219_1347.py rename to assets/migrations/0010_auto_20200219_1444.py index 074632d0..fe5744f4 100644 --- a/assets/migrations/0010_auto_20200219_1347.py +++ b/assets/migrations/0010_auto_20200219_1444.py @@ -1,4 +1,4 @@ -# Generated by Django 2.0.13 on 2020-02-19 13:47 +# Generated by Django 3.0.3 on 2020-02-19 14:44 from django.db import migrations @@ -16,6 +16,6 @@ class Migration(migrations.Migration): ), migrations.AlterModelOptions( name='supplier', - options={}, + options={'ordering': ['name']}, ), ] diff --git a/assets/models.py b/assets/models.py index 7bf65260..a6c767f1 100644 --- a/assets/models.py +++ b/assets/models.py @@ -41,6 +41,9 @@ class AssetStatus(models.Model): @reversion.register class Supplier(models.Model, RevisionMixin): + class Meta: + ordering = ['name'] + name = models.CharField(max_length=80) def get_absolute_url(self):