mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-21 23:42:14 +00:00
Fix for issue #4. Changed edited by username to standard name format.
This commit is contained in:
@@ -7,7 +7,6 @@ from django.conf import settings
|
||||
import reversion
|
||||
|
||||
|
||||
|
||||
# Create your models here.
|
||||
class Profile(AbstractUser):
|
||||
initials = models.CharField(max_length=5, unique=True, null=True, blank=True)
|
||||
@@ -75,7 +74,7 @@ class Organisation(models.Model, RevisionMixin):
|
||||
if len(self.notes) > 0:
|
||||
string += "*"
|
||||
return string
|
||||
|
||||
|
||||
class Meta:
|
||||
permissions = (
|
||||
('view_organisation', 'Can view Organisations'),
|
||||
@@ -131,7 +130,7 @@ class Venue(models.Model, RevisionMixin):
|
||||
if self.notes and len(self.notes) > 0:
|
||||
string += "*"
|
||||
return string
|
||||
|
||||
|
||||
class Meta:
|
||||
permissions = (
|
||||
('view_venue', 'Can view Venues'),
|
||||
@@ -245,7 +244,7 @@ class Event(models.Model, RevisionMixin):
|
||||
|
||||
def __str__(self):
|
||||
return str(self.pk) + ": " + self.name
|
||||
|
||||
|
||||
class Meta:
|
||||
permissions = (
|
||||
('view_event', 'Can view Events'),
|
||||
@@ -286,7 +285,6 @@ class Invoice(models.Model):
|
||||
void = models.BooleanField()
|
||||
|
||||
|
||||
|
||||
class Payment(models.Model):
|
||||
CASH = 'C'
|
||||
INTERNAL = 'I'
|
||||
|
||||
Reference in New Issue
Block a user