I want to overwrite the custom objects model manager to only return objects a specific user created. Admin users should still return all objects using the objects model mana
Or even simpler and use foreign key to retrieve queryset.
If you have model like that
class HourRecord(models.Model): created_by = ForeignKey(get_user_model(), related_name='hour_records')
You can query HourRecords in a view by user with simply:
HourRecords
request.user.hour_records.all()