dcramer/sentry — Issue #323: GroupBookmark.user related_name collision
Author: lettertwo
Created: 2012-01-26 20:56:13+00:00
State: open

The `GroupBookmark` model has a foreign key to the Django auth `User` model. It is specifying a `related_name` of **bookmark_set**, which in my particular case, is clashing with django-admin-tools `menu.Bookmark.user` field (which is using its default value, **bookmark_set**).

Since the `User` model does not belong to Sentry, maybe the `related_name` should be "namespaced" in some way, such as **sentry_bookmark_set**?

## Requirements:

```
Django==1.3.1
sentry==2.0.0
django-admin-tools==0.4.1
```

## Error message:

```
Error: One or more models did not validate:
menu.bookmark: Accessor for field 'user' clashes with related field 'User.bookmark_set'. Add a related_name argument to the definition for 'user'.
sentry.groupbookmark: Accessor for field 'user' clashes with related field 'User.bookmark_set'. Add a related_name argument to the definition for 'user'.
sentry.groupbookmark: Reverse query name for field 'user' clashes with related field 'User.bookmark_set'. Add a related_name argument to the definition for 'user'.
```