brhoades / sweaters-but-with-peer-reviews

This was our senior design project for SP2016. It's an alternative to rate my professor which requires metamoderation (peer reviews) for all professor reviews.
http://profreview.xyz
1 stars 1 forks source link

Add common methods for identifying users #90

Open brhoades opened 8 years ago

brhoades commented 8 years ago

For example, in browse/models.py I constantly do:

 "{} {}".format(self.created_by.first_name, self.created_by.last_name).  # "Billy Rhoades"

I should just be able to do something like:

"{}".format(self.created_by.name) # "Billy Rhoades"

Let's also add aliases for more unique identifiers like:

"{}".format(self.created_by.name_and_user) # "Billy Rhoades (brodes)"

This issue includes actually implementing these in models.